Function at 0x406440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5c9180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x30], 0x5e5238
mov word [esp + 0x34], 0xffff
mov word [esp + 0x36], si
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], esi
call fcn.00558060
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 1
call fcn.00558060
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call fcn.00558060
push 6
push 0x6095bc
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 3
call fcn.00558100
push 6
push 0x609638
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 4
call fcn.00558100
mov al, 0xe1
push 8
mov byte [esp + 0x42], al
mov byte [esp + 0x43], al
mov byte [esp + 0x44], al
mov byte [esp + 0x45], al
mov al, 0xe2
push 0x60962c
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 5
mov byte [esp + 0x40], 3
mov byte [esp + 0x41], 1
mov byte [esp + 0x42], 2
mov byte [esp + 0x43], 6
mov byte [esp + 0x44], 8
mov byte [esp + 0x45], 9
mov byte [esp + 0x4a], al
mov byte [esp + 0x4b], al
mov byte [esp + 0x4c], al
mov byte [esp + 0x4d], al
call fcn.00558600
mov edi, dword [esp + 0x58]
lea ecx, [esp + 0x18]
movsx eax, di
mov al, byte [esp + eax + 0x38]
push eax
push 4
mov byte [esp + 0x2c], al
call fcn.005584a0
push edi
push 5
lea ecx, [esp + 0x28]
call fcn.005584a0
push edi
push 5
lea ecx, [esp + 0x24]
call fcn.005584a0
lea eax, [esp + 0x18]
push eax
call fcn.004023c0
add esp, 4
xor edi, edi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00558070
call fcn.00402440
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00558520
test ax, ax
jne 0x406591
inc edi
cmp di, 3
jl 0x40655e
lea ecx, [esp + 0x14]
call fcn.00558520
test ax, ax
jne 0x40662f
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push 6
push 0x609624
call fcn.00558100
push ecx
mov byte [esp + 0x60], 6
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x60961c
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x60], 5
call fcn.00543af0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 4
call fcn.005581a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 3
call fcn.005581a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call fcn.005581a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 1
call fcn.005581a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call fcn.005581a0
or ax, 0xffff
jmp 0x406bab
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00558070
mov ecx, dword [0x619a64]
call fcn.00548370
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x609614
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60960c
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x609604
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
mov cl, byte [esp + 0x58]
sub esp, 0x10
mov ebp, esp
mov edi, 0x619c18
xor eax, eax
mov dword [esp + 0x38], esp
mov byte [ebp], cl
or ecx, 0xffffffff
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x4066dc
call fcn.005bc520
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x406702
mov al, byte [ecx - 1]
test al, al
je 0x406702
cmp al, 0xff
je 0x406702
cmp ebx, esi
jne 0x406726
dec al
mov byte [ecx - 1], al
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
jmp 0x406754
cmp ebx, esi
jne 0x406711
push 1
mov ecx, ebp
call fcn.00401850
jmp 0x406754
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x40671d
cmp eax, ebx
jae 0x40672e
push 1
mov ecx, ebp
call fcn.00401850
push ebx
mov ecx, ebp
call fcn.004019e0
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, 0x619c18
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
xor esi, esi
mov byte [ebp], 0
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0x68], 7
call fcn.00558070
mov ecx, dword [0x619a64]
mov byte [esp + 0x64], 5
call fcn.00548570
mov ecx, dword [0x619a64]
call fcn.00548950
cmp ax, 2
je 0x406b62
cmp ax, si
jne 0x406916
push esi
push 3
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x44], esp
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x609624
call fcn.00558100
push edi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x78], 8
mov edi, esp
mov dword [esp + 0x50], esp
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push 6
push 0x6095fc
call fcn.00558100
push edi
call fcn.00560f40
add esp, 8
mov ecx, 0x619a58
mov byte [esp + 0x78], 5
call fcn.00543a40
cmp ax, 2
je 0x40662f
push 8
push 0x6095f0
lea ecx, [esp + 0x18]
call fcn.00558600
mov ecx, dword [esp + 0x24]
push ecx
push 4
lea ecx, [esp + 0x18]
call fcn.005584a0
mov eax, dword [esp + 0x58]
cmp ax, 5
jle 0x406841
movsx eax, ax
add eax, 0xfffffffa
and eax, 0x80000003
jns 0x40683c
dec eax
or eax, 0xfffffffc
inc eax
inc al
push eax
jmp 0x406846
push 0xff
push 6
lea ecx, [esp + 0x18]
call fcn.005584a0
push esi
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x609624
call fcn.00558100
push ecx
mov byte [esp + 0x60], 9
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x6095e8
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x60], 5
call fcn.00543af0
lea edx, [esp + 0x10]
push edx
call fcn.004023c0
add esp, 4
lea eax, [esp + 0x14]
lea edx, [esp + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00558070
call fcn.00402440
push 0x7d0
call fcn.00401520
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00558520
push esi
push 1
push ecx
test ax, ax
mov ecx, esp
je 0x406a59
mov dword [esp + 0x38], esp
push 6
push 0x609624
call fcn.00558100
push ecx
mov byte [esp + 0x60], 0xb
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x6095e0
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x60], 5
call fcn.00543af0
jmp 0x40662f
cmp ax, 1
jne 0x40662f
push esi
push 3
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x44], esp
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x609624
call fcn.00558100
push edi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x78], 0xc
mov edi, esp
mov dword [esp + 0x50], esp
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push 6
push 0x6095fc
call fcn.00558100
push edi
call fcn.00560f40
add esp, 8
mov ecx, 0x619a58
mov byte [esp + 0x78], 5
call fcn.00543a40
cmp ax, 2
je 0x40662f
push 8
push 0x6095d4
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
push 4
call fcn.005584a0
push esi
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x609624
call fcn.00558100
push ecx
mov byte [esp + 0x60], 0xd
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x6095cc
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x60], 5
call fcn.00543af0
lea ecx, [esp + 0x10]
push ecx
call fcn.004023c0
add esp, 4
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00558070
call fcn.00402440
push 0x7d0
call fcn.00401520
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00558520
push esi
push 1
push ecx
test ax, ax
mov ecx, esp
je 0x406adf
mov dword [esp + 0x38], esp
push 6
push 0x609624
call fcn.00558100
push ecx
mov byte [esp + 0x60], 0xf
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x6095c4
jmp 0x4068fd
mov dword [esp + 0x64], esp
push 6
push 0x609624
call fcn.00558100
push ecx
mov byte [esp + 0x60], 0xa
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x60961c
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x60], 5
call fcn.00543af0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 4
call fcn.005581a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 3
call fcn.005581a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call fcn.005581a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 1
call fcn.005581a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call fcn.005581a0
or ax, 0xffff
jmp 0x406bab
mov dword [esp + 0x64], esp
push 6
push 0x609624
call fcn.00558100
push ecx
mov byte [esp + 0x60], 0xe
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x60961c
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x60], 5
call fcn.00543af0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 4
call fcn.005581a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 3
call fcn.005581a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call fcn.005581a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 1
call fcn.005581a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call fcn.005581a0
or ax, 0xffff
jmp 0x406bab
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 4
call fcn.005581a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 3
call fcn.005581a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call fcn.005581a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 1
call fcn.005581a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call fcn.005581a0
xor ax, ax
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 4