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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov edi, dword [esp + 0xa4]
mov eax, dword [ecx + 0x48]
mov esi, dword [eax + 4]
mov dword [esp + 0x50], esi
test edi, edi
je 0x4060be
cmp dword [eax + 0x34], 0
jne 0x4060be
mov dword [ecx + 0x1c], 3
jmp 0x406536
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], eax
movzx edx, word [esp + 0x68]
movzx ebx, word [esp + 0x70]
movzx edi, word [esp + 0x78]
mov eax, edx
mov dword [esp + 0x40], edx
lea eax, [edx + ebx]
add eax, edi
mov ebp, dword [esp + 0xb0]
xor edx, edx
add eax, ebp
setb dl
add eax, esi
adc edx, 0
add eax, 0x2e
adc edx, 0
cmp eax, 0xffffffff
sbb edx, 0
jb 0x406111
mov dword [ecx + 0x1c], 0xf
jmp 0x406536
mov dword [esp + 0x38], edi
mov dword [esp], ecx
movzx edx, word [esp + 0x90]
mov dword [esp + 4], esi
mov edi, ebx
and edi, ebp
mov dword [esp + 0x3c], ebx
mov esi, ebx
xor esi, ebp
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
movups xmmword [esp + 0x1c], xmm0
mov word [esp + 0x2c], 0
mov dword [esp + 8], 0x2014b50
xor ecx, ecx
test dx, dx
mov eax, 0x14
cmove eax, ecx
mov byte [esp + 0xe], al
movzx eax, word [esp + 0x94]
mov byte [esp + 0x10], al
mov byte [esp + 0x11], ah
movzx ebx, word [esp + 0x9c]
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], dh
movzx eax, word [esp + 0x98]
mov byte [esp + 0x14], al
mov byte [esp + 0x15], ah
mov edx, dword [esp + 0x8c]
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bh
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], dh
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x88]
shr edx, 0x18
mov byte [esp + 0x1b], dl
mov ebx, dword [esp + 0x84]
neg eax
mov edx, 0
sbb edx, edx
or edx, ebx
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1d], dh
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x1e], al
mov eax, dword [esp + 0x80]
shr edx, 0x18
mov byte [esp + 0x1f], dl
mov ebx, dword [esp + 0x7c]
neg eax
mov edx, 0
sbb edx, edx
or edx, ebx
mov byte [esp + 0x20], dl
mov byte [esp + 0x21], dh
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x22], al
lea eax, [esi + edi*2]
mov edi, dword [esp + 4]
shr edx, 0x18
mov byte [esp + 0x23], dl
mov edx, dword [esp + 0xa8]
movzx ebx, word [esp + 0x68]
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bh
mov byte [esp + 0x26], al
mov byte [esp + 0x27], ah
movzx eax, word [esp + 0x78]
mov byte [esp + 0x28], al
mov byte [esp + 0x29], ah
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], dh
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x30], al
shr edx, 0x18
mov byte [esp + 0x31], dl
neg dword [esp + 0x48]
sbb ecx, ecx
mov eax, dword [esp + 0xa0]
or ecx, eax
mov byte [esp + 0x32], cl
mov byte [esp + 0x33], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x34], al
shr ecx, 0x18
mov byte [esp + 0x35], cl
lea esi, [edi + 0x2e]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [ebx + 8]
cmp ecx, esi
jae 0x4062ce
test ecx, ecx
mov eax, 1
cmovne eax, ecx
nop word [eax + eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x4062a0
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x406508
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov edi, dword [esp + 4]
jmp 0x4062d0
mov eax, dword [ebx]
mov dword [ebx + 4], esi
mov ecx, dword [ebx + 0xc]
imul edx, ecx, 0x2e
imul ecx, edi
add ecx, eax
lea eax, [esp + 8]
push edx
push eax
push ecx
call fcn.00408920
add esp, 0xc
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, dword [esp + 0x40]
lea ebp, [esi + eax]
cmp edi, ebp
jae 0x406338
test edi, edi
mov eax, 1
cmovne eax, edi
nop dword [eax + eax]
mov edi, eax
add eax, eax
cmp edi, ebp
jb 0x406310
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x406508
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov dword [ebx + 4], ebp
cmp word [esp + 0x68], 0
je 0x406366
mov eax, dword [ebx + 0xc]
imul esi, eax
add esi, dword [ebx]
mov ecx, dword [esp + 0x40]
imul ecx, eax
push ecx
push dword [esp + 0x48]
push esi
call fcn.00408920
add esp, 0xc
mov ebp, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov ecx, dword [esp + 0x3c]
lea esi, [ecx + ebp]
cmp edi, esi
jae 0x4063b5
test edi, edi
mov eax, 1
cmovne eax, edi
nop dword [eax + eax]
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x406380
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x406508
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x3c]
jmp 0x4063bc
mov eax, dword [esp + 0xb0]
mov dword [ebx + 4], esi
cmp word [esp + 0x70], 0
je 0x4063ed
mov eax, dword [ebx + 0xc]
imul ebp, eax
add ebp, dword [ebx]
imul ecx, eax
push ecx
push dword [esp + 0x70]
push ebp
call fcn.00408920
mov eax, dword [esp + 0xbc]
add esp, 0xc
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
lea ebp, [esi + eax]
cmp edi, ebp
jae 0x40642f
test edi, edi
mov eax, 1
cmovne eax, edi
nop
mov edi, eax
add eax, eax
cmp edi, ebp
jb 0x406400
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x406508
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov eax, dword [esp + 0xb0]
mov dword [ebx + 4], ebp
test eax, eax
je 0x40645a
mov ecx, eax
mov eax, dword [ebx + 0xc]
imul esi, eax
add esi, dword [ebx]
imul ecx, eax
push ecx
push dword [esp + 0xb0]
push esi
call fcn.00408920
add esp, 0xc
mov ebp, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, dword [esp + 0x38]
lea esi, [eax + ebp]
cmp edi, esi
jae 0x406494
test edi, edi
mov eax, 1
cmovne eax, edi
nop
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x406470
push edi
push dword [ebx + 0xc]
push dword [ebx]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x406508
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov dword [ebx + 4], esi
cmp word [esp + 0x78], 0
je 0x4064bc
mov eax, dword [ebx + 0xc]
imul ebp, eax
add ebp, dword [ebx]
mov ecx, dword [esp + 0x38]
imul ecx, eax
push ecx
push dword [esp + 0x78]
push ebp
call fcn.00408920
add esp, 0xc
mov esi, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
lea edi, [esi + 1]
cmp ecx, edi
jae 0x406540
test ecx, ecx
mov eax, 1
cmovne eax, ecx
nop word cs:[eax + eax]
mov ebp, eax
add eax, eax
cmp ebp, edi
jb 0x4064e0
push ebp
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x406508
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], ebp
jmp 0x406543
mov edi, dword [esp + 4]
cmp dword [ebx + 8], edi
mov esi, dword [esp]
jae 0x40652c
push edi
push dword [ebx + 0xc]
push dword [ebx]
push dword [esi + 0x34]
call dword [esi + 0x30]
add esp, 0x10
test eax, eax
je 0x40652f
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [esi + 0x1c], 0x10
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x14], edi
mov ecx, dword [ebx + 0x1c]
imul esi, ecx
add esi, eax
lea eax, [esp + 0x50]
push ecx
push eax
push esi
call fcn.00408920
add esp, 0xc
mov eax, 1
jmp 0x406538