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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [esp + 0xa4]
mov edi, dword [esp + 0x60]
mov esi, dword [edi + 0x48]
mov ebx, dword [esi + 4]
mov dword [esp + 0x48], ebx
test eax, eax
je 0x409f92
cmp dword [esi + 0x34], 0
jne 0x409f92
mov dword [edi + 0x1c], 3
jmp 0x40a413
mov dword [esp + 0x44], eax
movzx ecx, word [esp + 0x70]
movzx eax, word [esp + 0x68]
movzx ecx, cx
movzx ebp, word [esp + 0x78]
mov dword [esp + 0x38], ecx
mov edx, eax
mov dword [esp + 0x3c], eax
add ecx, eax
add ecx, ebp
mov eax, dword [esp + 0xb0]
xor edx, edx
add ecx, eax
setb dl
add ecx, ebx
adc edx, 0
add ecx, 0x2e
adc edx, 0
cmp ecx, 0xffffffff
sbb edx, 0
jb 0x409fe3
mov dword [edi + 0x1c], 0xf
jmp 0x40a413
mov dword [esp + 0x34], ebp
mov dword [esp], ebx
mov edi, dword [esp + 0x88]
mov ebp, dword [esp + 0x80]
mov dword [esp + 0xa], 0
mov dword [esp + 0xe], 0
mov dword [esp + 0x12], 0
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov dword [esp + 0x26], 0
mov word [esp + 0x2a], 0
mov dword [esp + 6], 0x2014b50
movzx edx, word [esp + 0x90]
mov ebx, dword [esp + 0x8c]
mov ecx, eax
movzx eax, word [esp + 0x70]
add eax, ecx
mov dword [esp + 0x40], eax
mov eax, edx
xor ecx, ecx
mov edx, 0
test ax, ax
je 0x40a073
mov dl, 0x14
mov byte [esp + 0xc], dl
movzx edx, word [esp + 0x94]
mov byte [esp + 0xe], dl
mov byte [esp + 0xf], dh
mov byte [esp + 0x10], al
mov byte [esp + 0x11], ah
movzx eax, word [esp + 0x98]
mov byte [esp + 0x12], al
mov byte [esp + 0x13], ah
movzx eax, word [esp + 0x9c]
mov byte [esp + 0x14], al
mov byte [esp + 0x15], ah
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bh
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x18], dl
shr ebx, 0x18
neg edi
mov edx, 0
sbb edx, edx
mov byte [esp + 0x19], bl
or edx, dword [esp + 0x84]
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1b], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x1c], bl
shr edx, 0x18
neg ebp
mov ebx, 0
sbb ebx, ebx
mov byte [esp + 0x1d], dl
or ebx, dword [esp + 0x7c]
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bh
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x20], dl
shr ebx, 0x18
mov byte [esp + 0x21], bl
movzx eax, word [esp + 0x68]
mov byte [esp + 0x22], al
mov byte [esp + 0x23], ah
mov eax, dword [esp + 0x40]
mov byte [esp + 0x24], al
mov byte [esp + 0x25], ah
movzx edx, word [esp + 0x78]
mov byte [esp + 0x26], dl
mov byte [esp + 0x27], dh
mov eax, dword [esp + 0xa8]
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], ah
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x2e], dl
shr eax, 0x18
neg dword [esp + 0x44]
sbb ecx, ecx
mov byte [esp + 0x2f], al
or ecx, dword [esp + 0xa0]
mov byte [esp + 0x30], cl
mov byte [esp + 0x31], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x32], al
shr ecx, 0x18
mov byte [esp + 0x33], cl
mov ebx, dword [esp]
lea edi, [ebx + 0x2e]
mov eax, dword [esi + 8]
cmp eax, edi
jae 0x40a1cd
cmp eax, 1
adc eax, 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, eax
add eax, eax
cmp ebx, edi
jb 0x40a1a0
push ebx
push dword [esi + 0xc]
push dword [esi]
mov eax, dword [esp + 0x6c]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40a3e5
mov dword [esi], eax
mov dword [esi + 8], ebx
mov ebx, dword [esp]
jmp 0x40a1cf
mov eax, dword [esi]
mov dword [esi + 4], edi
mov ecx, dword [esi + 0xc]
imul edx, ecx, 0x2e
imul ecx, ebx
add ecx, eax
lea eax, [esp + 6]
push edx
push eax
push ecx
call fcn.0040c5b0
add esp, 0xc
mov ebx, dword [esi + 4]
mov ebp, dword [esi + 8]
mov eax, dword [esp + 0x3c]
lea edi, [ebx + eax]
cmp ebp, edi
jae 0x40a238
cmp ebp, 1
adc ebp, 0
mov eax, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebp, eax
add eax, eax
cmp ebp, edi
jb 0x40a210
push ebp
push dword [esi + 0xc]
push dword [esi]
mov eax, dword [esp + 0x6c]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40a3e5
mov dword [esi], eax
mov dword [esi + 8], ebp
movzx ecx, word [esp + 0x70]
mov dword [esi + 4], edi
cmp word [esp + 0x68], 0
je 0x40a270
mov eax, dword [esi + 0xc]
imul ebx, eax
add ebx, dword [esi]
mov ecx, dword [esp + 0x3c]
imul ecx, eax
push ecx
push dword [esp + 0x68]
push ebx
call fcn.0040c5b0
movzx ecx, word [esp + 0x7c]
add esp, 0xc
mov edi, dword [esi + 4]
mov ebp, dword [esi + 8]
mov eax, dword [esp + 0x38]
lea ebx, [edi + eax]
cmp ebp, ebx
jae 0x40a2bd
cmp ebp, 1
adc ebp, 0
mov eax, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebp, eax
add eax, eax
cmp ebp, ebx
jb 0x40a290
push ebp
push dword [esi + 0xc]
push dword [esi]
mov eax, dword [esp + 0x6c]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40a3e5
mov dword [esi], eax
mov dword [esi + 8], ebp
movzx ecx, word [esp + 0x70]
mov dword [esi + 4], ebx
test cx, cx
je 0x40a2e8
mov eax, dword [esi + 0xc]
imul edi, eax
add edi, dword [esi]
mov ecx, dword [esp + 0x38]
imul ecx, eax
push ecx
push dword [esp + 0x70]
push edi
call fcn.0040c5b0
add esp, 0xc
mov ebx, dword [esi + 4]
mov ebp, dword [esi + 8]
mov eax, dword [esp + 0xb0]
lea edi, [ebx + eax]
cmp ebp, edi
jae 0x40a32f
cmp ebp, 1
adc ebp, 0
mov eax, ebp
nop
nop
mov ebp, eax
add eax, eax
cmp ebp, edi
jb 0x40a300
push ebp
push dword [esi + 0xc]
push dword [esi]
mov eax, dword [esp + 0x6c]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x40a3e5
mov dword [esi], eax
mov dword [esi + 8], ebp
mov eax, dword [esp + 0xb0]
mov dword [esi + 4], edi
test eax, eax
je 0x40a35a
mov ecx, eax
mov eax, dword [esi + 0xc]
imul ebx, eax
add ebx, dword [esi]
imul ecx, eax
push ecx
push dword [esp + 0xb0]
push ebx
call fcn.0040c5b0
add esp, 0xc
mov edi, dword [esi + 4]
mov ebp, dword [esi + 8]
mov eax, dword [esp + 0x34]
lea ebx, [edi + eax]
cmp ebp, ebx
jae 0x40a37a
mov ecx, dword [esp + 0x60]
mov edx, esi
push 1
push ebx
call fcn.0040c480
add esp, 8
test eax, eax
je 0x40a3e5
mov dword [esi + 4], ebx
cmp word [esp + 0x78], 0
je 0x40a3a2
mov eax, dword [esi + 0xc]
imul edi, eax
add edi, dword [esi]
mov ecx, dword [esp + 0x34]
imul ecx, eax
push ecx
push dword [esp + 0x78]
push edi
call fcn.0040c5b0
add esp, 0xc
mov edi, dword [esi + 0x14]
lea ebx, [edi + 1]
cmp dword [esi + 0x18], ebx
jae 0x40a3c3
lea edx, [esi + 0x10]
mov ecx, dword [esp + 0x60]
push 1
push ebx
call fcn.0040c480
add esp, 8
test eax, eax
je 0x40a3e5
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x1c]
imul edi, eax
add edi, dword [esi + 0x10]
lea ecx, [esp + 0x48]
push eax
push ecx
push edi
call fcn.0040c5b0
add esp, 0xc
mov eax, 1
jmp 0x40a415
mov ebx, dword [esp]
cmp dword [esi + 8], ebx
mov edi, dword [esp + 0x60]
jae 0x40a409
push ebx
push dword [esi + 0xc]
push dword [esi]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x40a40c
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [edi + 0x1c], 0x10
xor eax, eax
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret