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

Disassembly:
sub esp, 0xd4
push ebx
push edi
mov edi, ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x40], edi
mov eax, dword [edi + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x90]
mov eax, dword [edi + 0x24]
lea edx, [esp + 0x60]
mov dword [esp + 0x60], 0x7c
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x58]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
xor ebx, ebx
mov dword [esp + 0x68], ecx
lea ecx, [esp + 8]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
push ebx
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x6c], 0x101007
mov dword [esp + 0xd0], 0x1800
mov dword [esp + 0xd4], ebx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x18]
test eax, eax
jge 0x4060ed
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
xor eax, eax
pop ebx
add esp, 0xd4
ret
mov eax, dword [esp + 8]
push ebx
lea edx, [esp + 0x64]
push ebx
mov ecx, dword [eax]
push edx
push ebx
push eax
call dword [ecx + 0x64]
cmp eax, 0x8876021c
jne 0x40611f
mov eax, dword [esp + 8]
push ebx
lea edx, [esp + 0x64]
push ebx
mov ecx, dword [eax]
push edx
push ebx
push eax
call dword [ecx + 0x64]
cmp eax, 0x8876021c
je 0x406106
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0xc4]
push ebp
mov dword [esp + 0x5c], ecx
mov ecx, 8
push esi
mov esi, dword [esp + 0xc4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], ecx
xor ebp, ebp
xor ecx, ecx
test eax, eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ecx
je 0x4061a9
test al, 1
jne 0x406194
inc ebp
shr eax, 1
jne 0x406185
mov dword [esp + 0x2c], ebp
jmp 0x4061a9
test eax, eax
mov dword [esp + 0x2c], ebp
je 0x4061a9
mov ebp, dword [esp + 0x38]
dec ebp
shr eax, 1
mov dword [esp + 0x38], ebp
jne 0x40619c
test esi, esi
mov eax, esi
je 0x4061d3
test al, 1
jne 0x4061be
inc ebx
shr eax, 1
jne 0x4061af
mov dword [esp + 0x3c], ebx
jmp 0x4061d3
test eax, eax
mov dword [esp + 0x3c], ebx
je 0x4061d3
mov ebx, dword [esp + 0x40]
dec ebx
shr eax, 1
mov dword [esp + 0x40], ebx
jne 0x4061c6
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x406206
mov esi, dword [esp + 0x14]
test al, 1
jne 0x4061f1
inc esi
shr eax, 1
jne 0x4061e2
mov dword [esp + 0x14], esi
jmp 0x406206
test eax, eax
mov dword [esp + 0x14], esi
je 0x406206
mov esi, dword [esp + 0x24]
dec esi
shr eax, 1
jne 0x4061fd
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x406235
test al, 1
jne 0x406220
inc ecx
shr eax, 1
jne 0x406211
mov dword [esp + 0x20], ecx
jmp 0x406235
test eax, eax
mov dword [esp + 0x20], ecx
je 0x406235
mov ecx, dword [esp + 0x34]
dec ecx
shr eax, 1
jne 0x40622c
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], 0
test eax, eax
jbe 0x406379
mov eax, dword [esp + 0x74]
xor ebp, ebp
test eax, eax
jbe 0x40635a
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
and ecx, 0xff
and ebx, 0xff
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x24]
and ecx, 0xff
mov dword [esp + 0x30], edx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x34]
and ecx, 0xff
mov dword [esp + 0x28], edx
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x18]
mov cl, bl
imul edx, eax
mov eax, dword [edi + 0x2c]
add edx, ebp
mov esi, dword [esp + 0x64]
mov eax, dword [eax + edx*4]
mov edi, eax
mov edx, eax
shr edi, 0x18
shr edi, cl
mov ecx, dword [esp + 0x2c]
shr edx, 0x10
and edx, 0xff
shl edi, cl
mov ecx, dword [esp + 0x5c]
and edi, ecx
mov cl, byte [esp + 0x54]
shr edx, cl
mov ecx, dword [esp + 0x3c]
shl edx, cl
mov cl, byte [esp + 0x4c]
and edx, esi
mov esi, eax
shr esi, 8
and esi, 0xff
and eax, 0xff
shr esi, cl
mov ecx, dword [esp + 0x14]
shl esi, cl
mov ecx, dword [esp + 0x50]
and esi, ecx
mov cl, byte [esp + 0x58]
shr eax, cl
mov ecx, dword [esp + 0x20]
shl eax, cl
mov ecx, dword [esp + 0x60]
and eax, ecx
mov ecx, dword [esp + 0xbc]
cmp ecx, 0x20
jne 0x406322
mov ecx, dword [esp + 0x28]
add eax, esi
add eax, edx
add eax, edi
mov dword [ecx], eax
jmp 0x40632f
add eax, esi
add eax, edx
mov edx, dword [esp + 0x30]
add eax, edi
mov word [edx], ax
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x44]
inc ebp
add esi, 4
add edx, 2
cmp ebp, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edx
jb 0x406293
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x70]
add edx, ebp
inc ecx
mov dword [esp + 0x48], edx
cmp ecx, esi
mov dword [esp + 0x18], ecx
jb 0x40624d
mov eax, dword [esp + 0x10]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov edi, dword [edi + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0x1000000
mov edx, dword [edi]
push 0
push eax
push 0
push edi
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xd4
ret