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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [esp + 0xa0]
mov esi, dword [ecx + 0x48]
mov ebx, dword [esi + 4]
mov dword [esp + 0x50], ebx
test eax, eax
je 0x4060ce
cmp dword [esi + 0x34], 0
jne 0x4060ce
mov dword [ecx + 0x1c], 3
jmp 0x4066b0
mov dword [esp + 0x4c], edx
movzx edx, word [esp + 0x70]
movzx edi, word [esp + 0x68]
movzx edx, dx
movzx ebp, word [esp + 0x78]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edi
add edi, edx
add edi, ebp
xor edx, edx
add edi, dword [esp + 0xac]
setb dl
add edi, ebx
adc edx, 0
add edi, 0x2e
adc edx, 0
cmp edi, 0xffffffff
sbb edx, 0
jb 0x40611b
mov dword [ecx + 0x1c], 0xf
jmp 0x4066b0
mov dword [esp + 0x3c], ebp
mov dword [esp + 8], ebx
mov dword [esp], ecx
mov dword [esp + 4], esi
mov edi, dword [esp + 0x88]
mov ebp, dword [esp + 0x80]
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 dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov word [esp + 0x32], 0
mov dword [esp + 0xe], 0x2014b50
movzx esi, word [esp + 0x94]
mov ebx, dword [esp + 0x8c]
movzx ecx, word [esp + 0x70]
mov edx, dword [esp + 0xac]
add ecx, edx
mov dword [esp + 0x48], ecx
xor ecx, ecx
mov edx, 0
cmp word [esp + 0x90], 0
je 0x4061bc
mov dl, 0x14
mov byte [esp + 0x14], dl
mov edx, esi
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], dh
movzx edx, word [esp + 0x90]
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], dh
movzx edx, word [esp + 0x98]
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1d], dh
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bh
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x20], dl
shr ebx, 0x18
neg edi
mov edx, 0
sbb edx, edx
mov byte [esp + 0x21], bl
or edx, dword [esp + 0x84]
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x24], bl
shr edx, 0x18
neg ebp
mov ebx, 0
sbb ebx, ebx
mov byte [esp + 0x25], dl
or ebx, dword [esp + 0x7c]
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bh
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x28], dl
shr ebx, 0x18
mov byte [esp + 0x29], bl
movzx edx, word [esp + 0x68]
mov byte [esp + 0x2a], dl
mov byte [esp + 0x2b], dh
mov edx, dword [esp + 0x48]
mov byte [esp + 0x2c], dl
mov byte [esp + 0x2d], dh
movzx edx, word [esp + 0x78]
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], dh
mov ebx, dword [esp + 0xa4]
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bh
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x36], dl
shr ebx, 0x18
neg eax
sbb ecx, ecx
mov byte [esp + 0x37], bl
or ecx, dword [esp + 0x9c]
mov byte [esp + 0x38], cl
mov byte [esp + 0x39], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x3a], al
shr ecx, 0x18
mov byte [esp + 0x3b], cl
mov ebp, dword [esp + 8]
mov eax, ebp
and eax, 0x2e
mov ecx, ebp
xor ecx, 0x2e
lea esi, [ecx + eax*2]
mov ebx, dword [esp + 4]
mov ecx, dword [ebx + 8]
cmp ecx, esi
jae 0x406312
mov eax, 1
test ecx, ecx
je 0x4062e0
mov eax, ecx
nop
nop
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x4062e0
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
mov ecx, ebx
je 0x406680
mov dword [ecx], eax
mov dword [ecx + 8], edi
mov ebx, ecx
mov ebp, dword [esp + 8]
jmp 0x406314
mov eax, dword [ebx]
mov dword [ebx + 4], esi
mov ecx, dword [ebx + 0xc]
mov edx, ebp
not edx
and edx, ecx
mov esi, ecx
not esi
mov edi, ebp
and edi, esi
imul edi, edx
mov ebx, ecx
and ebx, ebp
mov edx, ecx
or edx, ebp
imul edx, ebx
mov ebx, dword [esp + 4]
add edx, eax
add edx, edi
and esi, 0x2e
mov eax, ecx
and eax, 0xffffffd1
imul eax, esi
mov esi, ecx
and esi, 0x2e
or ecx, 0x2e
imul ecx, esi
add ecx, eax
lea eax, [esp + 0xe]
push ecx
push eax
push edx
call fcn.00408860
add esp, 0xc
mov ebp, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, ebp
mov edx, dword [esp + 0x44]
and eax, edx
mov ecx, ebp
xor ecx, edx
lea esi, [ecx + eax*2]
cmp edi, esi
jae 0x4063bc
mov eax, 1
test edi, edi
je 0x406390
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x406390
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
mov ecx, ebx
je 0x406680
mov dword [ecx], eax
mov dword [ecx + 8], edi
mov ebx, ecx
mov dword [ebx + 4], esi
cmp word [esp + 0x68], 0
je 0x406416
mov eax, dword [ebx + 0xc]
mov edx, ebp
not edx
and edx, eax
mov ecx, eax
not ecx
mov esi, ebp
and esi, ecx
imul esi, edx
mov edx, eax
and edx, ebp
or ebp, eax
imul ebp, edx
add ebp, esi
add ebp, dword [ebx]
mov esi, dword [esp + 0x44]
and ecx, esi
mov edx, esi
not edx
and edx, eax
imul edx, ecx
mov ecx, eax
and ecx, esi
or eax, esi
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0x50]
push ebp
call fcn.00408860
add esp, 0xc
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, esi
mov edx, dword [esp + 0x40]
and eax, edx
mov ecx, esi
xor ecx, edx
lea ebp, [ecx + eax*2]
cmp edi, ebp
jae 0x40646c
mov eax, 1
test edi, edi
je 0x406440
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, eax
add eax, eax
cmp edi, ebp
jb 0x406440
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
mov ecx, ebx
je 0x406680
mov dword [ecx], eax
mov dword [ecx + 8], edi
mov ebx, ecx
movzx eax, word [esp + 0x70]
mov dword [ebx + 4], ebp
test ax, ax
je 0x4064c8
mov eax, dword [ebx + 0xc]
mov edx, esi
not edx
and edx, eax
mov ecx, eax
not ecx
mov edi, esi
and edi, ecx
imul edi, edx
mov edx, eax
and edx, esi
or esi, eax
imul esi, edx
add esi, edi
add esi, dword [ebx]
mov edi, dword [esp + 0x40]
and ecx, edi
mov edx, edi
not edx
and edx, eax
imul edx, ecx
mov ecx, eax
and ecx, edi
or eax, edi
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0x70]
push esi
call fcn.00408860
add esp, 0xc
mov ebp, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, ebp
mov edx, dword [esp + 0xac]
and eax, edx
mov ecx, ebp
xor ecx, edx
lea esi, [ecx + eax*2]
cmp edi, esi
jae 0x40651c
mov eax, 1
test edi, edi
je 0x4064f0
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
mov edi, eax
add eax, eax
cmp edi, esi
jb 0x4064f0
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
mov ecx, ebx
je 0x406680
mov dword [ecx], eax
mov dword [ecx + 8], edi
mov ebx, ecx
mov dword [ebx + 4], esi
mov eax, dword [esp + 0xac]
test eax, eax
je 0x40657a
mov edi, eax
mov eax, dword [ebx + 0xc]
mov edx, ebp
not edx
and edx, eax
mov ecx, eax
not ecx
mov esi, ebp
and esi, ecx
imul esi, edx
mov edx, eax
and edx, ebp
or ebp, eax
imul ebp, edx
add ebp, esi
add ebp, dword [ebx]
and ecx, edi
mov edx, edi
not edx
and edx, eax
imul edx, ecx
mov ecx, eax
and ecx, edi
or eax, edi
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0xac]
push ebp
call fcn.00408860
add esp, 0xc
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, esi
mov ebp, dword [esp + 0x3c]
and eax, ebp
mov ecx, esi
xor ecx, ebp
lea ebx, [ecx + eax*2]
cmp edi, ebx
jae 0x4065d3
mov eax, 1
test edi, edi
je 0x4065a0
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, eax
add eax, eax
cmp edi, ebx
jb 0x4065a0
push edi
mov ebp, dword [esp + 8]
push dword [ebp + 0xc]
push dword [ebp]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
mov ecx, ebp
add esp, 0x10
test eax, eax
je 0x406680
mov dword [ecx], eax
mov dword [ecx + 8], edi
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 4]
mov dword [eax + 4], ebx
mov ebx, eax
cmp word [esp + 0x78], 0
je 0x406629
mov eax, dword [ebx + 0xc]
mov edx, esi
not edx
and edx, eax
mov ecx, eax
not ecx
mov edi, esi
and edi, ecx
imul edi, edx
mov edx, eax
and edx, esi
or esi, eax
imul esi, edx
add esi, edi
add esi, dword [ebx]
and ecx, ebp
mov edx, ebp
not edx
and edx, eax
imul edx, ecx
mov ecx, eax
and ecx, ebp
or eax, ebp
imul eax, ecx
add eax, edx
push eax
push dword [esp + 0x78]
push esi
call fcn.00408860
add esp, 0xc
mov esi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
mov ecx, esi
and ecx, 1
mov edx, esi
xor edx, 1
lea edi, [edx + ecx*2]
cmp eax, edi
jae 0x4066ba
mov ecx, 1
test eax, eax
je 0x406650
mov ecx, eax
nop
nop
nop
nop
nop
mov ebx, ecx
add ecx, ecx
cmp ebx, edi
jb 0x406650
push ebx
mov ebp, dword [esp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
push dword [eax + 0x34]
call dword [eax + 0x30]
mov ecx, ebp
add esp, 0x10
test eax, eax
je 0x406680
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], ebx
mov ebx, ecx
jmp 0x4066bd
mov ebx, dword [esp + 8]
cmp dword [ecx + 8], ebx
mov esi, ecx
mov edi, dword [esp]
jae 0x4066a6
push ebx
push dword [esi + 0xc]
push dword [esi]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x4066a9
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [edi + 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]
mov edi, esi
not edi
and edi, ecx
mov edx, ecx
not edx
mov ebx, esi
and ebx, edx
imul ebx, edi
mov edi, ecx
and edi, esi
or esi, ecx
imul esi, edi
add esi, eax
add esi, ebx
and edx, 1
neg edx
and edx, ecx
and edx, 0xfffffffe
mov eax, ecx
or eax, 1
and ecx, 1
neg ecx
and ecx, eax
add ecx, edx
lea eax, [esp + 0x50]
push ecx
push eax
push esi
call fcn.00408860
add esp, 0xc
mov eax, 1
jmp 0x4066b2