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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [ebp + 8]
mov dword [esp + 0x6c], 0x3c80bc70
mov ecx, 0x3c80bc70
mov dword [esp + 0x54], 0x5ea144c1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
call fcn.00407933
mov ecx, eax
mov edx, eax
mov dword [esp + 0x78], 0x3c80bc70
mov esi, dword [eax + 0x3c]
mov edi, eax
add edi, esi
mov esi, dword [eax + esi]
xor ebx, ebx
sub esi, 0x4550
cmove ebx, edi
mov edi, dword [ebx + 0x78]
mov ebx, edi
add eax, edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov eax, edi
add eax, 0x2589a731
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
adc eax, 0
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + ebx + 0x18]
mov dword [esp + 0x18], eax
mov eax, edx
add eax, dword [ecx + ebx + 0x20]
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x28]
add ecx, 0xd9fb3d4
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x18]
cmp ecx, 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
jne 0x406b0d
mov eax, dword [esp + 0x58]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
test byte [esp + 0x51], 1
jne 0x406abe
jmp 0x406a3d
mov al, byte [esp + 0x5f]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
mov ah, byte [esp + 0x51]
cmp ecx, 0x20
setb bl
cmp al, 0
setne al
and ah, al
and ah, bl
mov dword [esp + 0x30], edx
test ah, 1
jne 0x4069ff
jmp 0x406922
mov eax, dword [esp + 0x14]
mov cl, al
mov byte [esp + 7], cl
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
shld eax, edx, cl
mov cl, byte [esp + 7]
shl edx, cl
xor esi, esi
mov cl, byte [esp + 7]
test cl, 0x20
cmovne eax, edx
cmovne edx, esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edx
cmp dword [esp + 0x48], 0x2b54d64
jbe 0x406922
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jb 0x406a73
jmp 0x406916
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
add eax, dword [ecx + 0x1c]
movzx edx, word [esp + 0x52]
mov esi, dword [esp + 0xc]
add esi, dword [eax + edx*4]
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x28]
imul eax, eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x28]
xor eax, 0xffffffff
mov dword [esp + 0x78], eax
jmp 0x406916
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x60]
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x2c]
mov dh, byte [ecx + eax]
mov byte [esp + 0x5f], dh
cmp dl, byte [esp + 0x5f]
sete dh
and dh, 1
mov byte [esp + 0x51], dh
cmp dl, 0
je 0x406922
jmp 0x406ae6
mov eax, 0x49367356
mov ecx, dword [esp + 0x44]
add ecx, 2
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x4c]
add ecx, 1
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x54]
add edx, 0x71d946fe
mov dword [esp + 0x48], edx
cmp eax, ecx
ja 0x406ae6
jmp 0x406960
mov eax, dword [esp + 0x28]
and eax, 0x52ba2e92
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x78], eax
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x28]
add ecx, 0x422669d1
mov dword [esp + 0x78], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
add ecx, dword [edx + eax*4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], 0
jmp 0x4069ff
mov eax, 0x1d6812fe
mov ecx, dword [esp + 0x44]
mov dx, word [ecx]
mov word [esp + 0x52], dx
mov dword [esp + 0x78], 0x1d42a8f9
cmp eax, dword [esp + 0x54]
jbe 0x4069c9
jmp 0x406a3d
mov eax, dword [esp + 0x60]
add eax, 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], 0
cmp eax, 0x1be8ef70
jae 0x406932
jmp 0x406916
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0xc]
add esi, ecx
mov ecx, dword [esp + 0x28]
xor ecx, 0xffffffff
mov dword [esp + 0x78], ecx
add edx, 0xc37f4390
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edx
jmp 0x406a73