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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [esp + 0x9c]
mov esi, dword [ecx + 0x48]
mov edi, dword [esi + 4]
mov dword [esp + 0x50], edi
test eax, eax
je 0x40681e
cmp dword [esi + 0x34], 0
jne 0x40681e
mov dword [ecx + 0x1c], 3
jmp 0x406e65
mov dword [esp + 0x4c], edx
mov dword [esp], esi
movzx edx, word [esp + 0x70]
movzx ebp, word [esp + 0x68]
movzx edx, dx
movzx ebx, word [esp + 0x78]
mov dword [esp + 0x40], edx
mov esi, ebp
mov dword [esp + 0x44], ebp
lea esi, [edx + ebp]
add esi, ebx
mov ebp, dword [esp + 0xa8]
xor edx, edx
add esi, ebp
setb dl
add esi, edi
adc edx, 0
add esi, 0x2e
adc edx, 0
cmp esi, 0xffffffff
sbb edx, 0
jb 0x406873
mov dword [ecx + 0x1c], 0xf
jmp 0x406e65
mov dword [esp + 0x3c], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x88]
mov ecx, ebp
mov edi, dword [esp + 0x80]
mov dword [esp + 0x12], 0
mov dword [esp + 0x16], 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 + 0x1a], 0
mov dword [esp + 0xe], 0x2014b50
mov ebx, dword [esp + 0x8c]
movzx edx, word [esp + 0x70]
lea ecx, [edx + ebp]
mov dword [esp + 0x48], ecx
xor ecx, ecx
mov edx, 0
cmp word [esp + 0x90], 0
je 0x406905
mov dl, 0x14
mov byte [esp + 0x14], dl
movzx edx, word [esp + 0x94]
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
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 esi
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 edi
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 + 0xa0]
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 + 0x98]
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]
lea esi, [ebp + 0x2e]
mov edx, dword [esp]
mov eax, dword [edx + 8]
cmp eax, esi
jae 0x406a65
mov edi, 1
test eax, eax
je 0x406a38
mov edi, eax
jmp 0x406a38
mov eax, edi
and eax, 0xfffffffd
mov ecx, edi
and ecx, 2
or edi, 2
imul edi, ecx
xor ecx, 2
imul ecx, eax
add edi, ecx
cmp edi, esi
jb 0x406a20
push edi
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x406e2f
mov edx, dword [esp]
mov dword [edx], eax
mov dword [edx + 8], edi
mov ebp, dword [esp + 8]
jmp 0x406a67
mov eax, dword [edx]
mov dword [edx + 4], esi
mov ecx, dword [edx + 0xc]
mov edx, ecx
not edx
mov esi, ebp
and esi, edx
mov edi, ebp
not edi
and edi, ecx
imul edi, esi
mov ebx, ecx
and ebx, ebp
mov esi, ecx
or esi, ebp
imul esi, ebx
add esi, eax
add esi, edi
mov eax, ecx
and eax, 0xffffffd1
and edx, 0x2e
imul edx, eax
mov eax, ecx
and eax, 0x2e
or ecx, 0x2e
imul ecx, eax
add ecx, edx
lea eax, [esp + 0xe]
push ecx
push eax
push esi
call fcn.00408fb0
mov edx, dword [esp + 0xc]
add esp, 0xc
mov esi, dword [edx + 4]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x44]
lea edi, [esi + ecx]
cmp eax, edi
jae 0x406b21
mov ebp, 1
test eax, eax
je 0x406af8
mov ebp, eax
jmp 0x406af8
mov eax, ebp
and eax, 0xfffffffd
mov ecx, ebp
and ecx, 2
or ebp, 2
imul ebp, ecx
xor ecx, 2
imul ecx, eax
add ebp, ecx
cmp ebp, edi
jb 0x406ae0
push ebp
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x406e2f
mov edx, dword [esp]
mov dword [edx], eax
mov dword [edx + 8], ebp
jmp 0x406b23
mov ebp, eax
mov dword [edx + 4], edi
cmp word [esp + 0x68], 0
je 0x406b84
mov eax, dword [edx + 0xc]
mov ecx, eax
not ecx
mov edx, esi
and edx, ecx
mov edi, esi
not edi
and edi, eax
imul edi, edx
mov edx, eax
and edx, esi
or esi, eax
imul esi, edx
add esi, edi
mov edx, dword [esp]
add esi, dword [edx]
mov edi, dword [esp + 0x44]
mov edx, edi
not edx
and edx, eax
and ecx, edi
imul ecx, edx
mov edx, eax
and edx, edi
or eax, edi
imul eax, edx
add eax, ecx
push eax
push dword [esp + 0x50]
push esi
call fcn.00408fb0
mov edx, dword [esp + 0xc]
add esp, 0xc
mov edi, dword [edx + 4]
mov ebp, dword [edx + 8]
mov eax, dword [esp + 0x40]
lea esi, [edi + eax]
cmp ebp, esi
jae 0x406be1
mov ebx, 1
test ebp, ebp
je 0x406bb8
mov ebx, ebp
jmp 0x406bb8
mov eax, ebx
and eax, 0xfffffffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, eax
add ebx, ecx
cmp ebx, esi
jb 0x406ba0
push ebx
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x406e2f
mov edx, dword [esp]
mov dword [edx], eax
mov dword [edx + 8], ebx
jmp 0x406be3
mov ebx, ebp
mov ebp, dword [esp + 0xa8]
movzx eax, word [esp + 0x70]
mov dword [edx + 4], esi
test ax, ax
je 0x406c4d
mov eax, dword [edx + 0xc]
mov ecx, eax
not ecx
mov edx, edi
and edx, ecx
mov esi, edi
not esi
and esi, eax
imul esi, edx
mov edx, eax
and edx, edi
or edi, eax
imul edi, edx
add edi, esi
mov edx, dword [esp]
add edi, dword [edx]
mov esi, dword [esp + 0x40]
mov edx, esi
not edx
and edx, eax
and ecx, esi
imul ecx, edx
mov edx, eax
and edx, esi
or eax, esi
imul eax, edx
add eax, ecx
push eax
push dword [esp + 0x70]
push edi
call fcn.00408fb0
mov edx, dword [esp + 0xc]
add esp, 0xc
mov esi, dword [edx + 4]
mov ebx, dword [edx + 8]
lea edi, [esi + ebp]
cmp ebx, edi
jae 0x406cb1
mov ebp, 1
test ebx, ebx
je 0x406c88
mov ebp, ebx
jmp 0x406c88
mov eax, ebp
and eax, 0xfffffffd
mov ecx, ebp
and ecx, 2
or ebp, 2
imul ebp, ecx
xor ecx, 2
imul ecx, eax
add ebp, ecx
cmp ebp, edi
jb 0x406c70
push ebp
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x406e2f
mov edx, dword [esp]
mov dword [edx], eax
mov dword [edx + 8], ebp
jmp 0x406cb3
mov ebp, ebx
mov dword [edx + 4], edi
mov ebx, dword [esp + 0xa8]
test ebx, ebx
je 0x406d16
mov eax, dword [edx + 0xc]
mov ecx, eax
not ecx
mov edx, esi
and edx, ecx
mov edi, esi
not edi
and edi, eax
imul edi, edx
mov edx, eax
and edx, esi
or esi, eax
imul esi, edx
add esi, edi
mov edx, dword [esp]
add esi, dword [edx]
mov edx, ebx
not edx
and edx, eax
and ecx, ebx
imul ecx, edx
mov edx, eax
and edx, ebx
or eax, ebx
imul eax, edx
add eax, ecx
push eax
push dword [esp + 0xa8]
push esi
call fcn.00408fb0
mov edx, dword [esp + 0xc]
add esp, 0xc
mov edi, dword [edx + 4]
mov ebp, dword [edx + 8]
mov ebx, dword [esp + 0x3c]
lea esi, [edi + ebx]
cmp ebp, esi
jae 0x406d73
mov ebx, 1
test ebp, ebp
je 0x406d48
mov ebx, ebp
jmp 0x406d48
mov eax, ebx
and eax, 0xfffffffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, eax
add ebx, ecx
cmp ebx, esi
jb 0x406d30
push ebx
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x406e2f
mov edx, dword [esp]
mov dword [edx], eax
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x3c]
mov dword [edx + 4], esi
cmp word [esp + 0x78], 0
je 0x406dca
mov eax, dword [edx + 0xc]
mov ecx, eax
not ecx
mov edx, edi
and edx, ecx
mov esi, edi
not esi
and esi, eax
imul esi, edx
mov edx, eax
and edx, edi
or edi, eax
imul edi, edx
add edi, esi
mov edx, dword [esp]
add edi, dword [edx]
mov edx, ebx
not edx
and edx, eax
and ecx, ebx
imul ecx, edx
mov edx, eax
and edx, ebx
or eax, ebx
imul eax, edx
add eax, ecx
push eax
push dword [esp + 0x78]
push edi
call fcn.00408fb0
mov edx, dword [esp + 0xc]
add esp, 0xc
mov esi, dword [edx + 0x14]
mov eax, dword [edx + 0x18]
lea edi, [esi + 1]
cmp eax, edi
jae 0x406e6f
mov ebx, 1
test eax, eax
je 0x406e08
mov ebx, eax
jmp 0x406e08
mov eax, ebx
and eax, 0xfffffffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, eax
add ebx, ecx
cmp ebx, edi
jb 0x406df0
push ebx
push dword [edx + 0x1c]
push dword [edx + 0x10]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x406e2f
mov edx, dword [esp]
mov dword [edx + 0x10], eax
mov dword [edx + 0x18], ebx
jmp 0x406e72
mov ebx, dword [esp + 8]
mov eax, dword [esp]
cmp dword [eax + 8], ebx
mov edi, dword [esp + 4]
jae 0x406e5b
push ebx
push dword [eax + 0xc]
push dword [eax]
push dword [edi + 0x34]
mov esi, eax
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x406e5e
mov dword [esi], eax
mov dword [esi + 8], ebx
mov eax, esi
mov dword [eax + 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 [edx + 0x10]
mov dword [edx + 0x14], edi
mov ecx, dword [edx + 0x1c]
mov edx, ecx
not edx
mov ebx, esi
and ebx, edx
mov edi, esi
not edi
and edi, ecx
imul edi, ebx
mov ebx, ecx
and ebx, esi
or esi, ecx
imul esi, ebx
add esi, eax
add esi, edi
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.00408fb0
add esp, 0xc
mov eax, 1
jmp 0x406e67