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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x499228
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov ebx, 0xf
xor esi, esi
mov eax, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], esi
mov byte [esp + 0x64], 0
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4062f0
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.00402300
mov dword [esp + 0x90], esi
push 4
push 0x4a85dc
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], esi
mov byte [esp + 0x50], 0
call fcn.00402300
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x90], 2
lea esp, [esp]
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x40634f
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x58]
push ecx
push eax
mov eax, esi
lea ecx, [esp + 0x6c]
call fcn.00407200
mov edi, eax
cmp edi, 0xffffffff
je 0x4063b3
cmp edi, esi
je 0x4063ae
mov edx, edi
sub edx, esi
push edx
mov ecx, esi
lea esi, [esp + 0x30]
lea edx, [esp + 0x68]
call fcn.00406950
mov ecx, eax
lea ebx, [esp + 0x18]
mov byte [esp + 0x90], 3
call fcn.00406ab0
mov byte [esp + 0x90], 2
cmp dword [esp + 0x40], 0x10
jb 0x4063ae
mov eax, dword [esp + 0x2c]
push eax
call fcn.0047fe1e
add esp, 4
lea esi, [edi + 1]
jmp 0x406340
cmp esi, dword [esp + 0x74]
ja 0x4063f9
mov ecx, esi
push 0xffffffffffffffff
lea esi, [esp + 0x30]
lea edx, [esp + 0x68]
call fcn.00406950
mov ecx, eax
lea ebx, [esp + 0x18]
mov byte [esp + 0x90], 4
call fcn.00406ab0
mov byte [esp + 0x90], 2
cmp dword [esp + 0x40], 0x10
jb 0x4063f9
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0047fe1e
add esp, 4
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, edi
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [esp + 0x14]
mov dword [edx], esi
mov dword [esp + 0x14], 0
cmp ebx, edi
je 0x4064f4
mov eax, dword [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406435
sub eax, edx
lea ebx, [esi + esi*4]
add ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
mov edi, eax
push 0
push edi
call fcn.00485710
mov dword [esp + 0x20], edi
lea esi, [edi + esi*4]
mov ebx, edi
mov edi, dword [esp + 0x24]
add esp, 0xc
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
call fcn.00402a60
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x406499
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
inc ecx
push ecx
push eax
push esi
call fcn.00481560
mov edx, dword [esp + 0x48]
mov dword [ebx], esi
add esp, 0xc
add ebx, 4
cmp dword [esp + 0x40], 0x10
lea esi, [esi + edx + 1]
jb 0x4064ca
mov eax, dword [esp + 0x2c]
push eax
call fcn.0047fe1e
add esp, 4
add edi, 0x1c
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
cmp edi, dword [esp + 0x1c]
jne 0x406467
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x90], 1
test ebx, ebx
je 0x406538
mov esi, ebx
cmp ebx, edi
je 0x40652f
cmp dword [esi + 0x14], 0x10
jb 0x406517
mov eax, dword [esi]
push eax
call fcn.0047fe1e
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x1c
cmp esi, edi
jne 0x406506
push ebx
call fcn.0047fe1e
add esp, 4
mov esi, 0x10
mov byte [esp + 0x90], 0
cmp dword [esp + 0x5c], esi
jb 0x406558
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0047fe1e
add esp, 4
mov dword [esp + 0x90], 0xffffffff
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
cmp dword [esp + 0x78], esi
jb 0x40658b
mov edx, dword [esp + 0x64]
push edx
call fcn.0047fe1e
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0047fe29
mov esp, ebp
pop ebp
ret