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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [ebp + 8]
mov dword [esp + 0x7c], 0x5fc1136e
mov dword [esp + 0x3c], eax
call fcn.00402702
mov ecx, eax
mov edx, dword [esp + 0x80]
mov dword [esp + 0x80], 0x428c51cf
movzx esi, word [esp + 0x86]
mov di, si
mov ebx, 0x258c
sub ebx, esi
mov si, bx
mov ebx, dword [eax + 0x3c]
mov dword [esp + 0x38], eax
add eax, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
mov ebx, dword [eax + ebx]
mov word [esp + 0x86], si
mov eax, dword [esp + 0x7c]
xor eax, 0x5fc1563e
xor esi, esi
sub ebx, eax
mov eax, dword [esp + 0x34]
cmove esi, eax
mov eax, edx
or eax, 0x16837381
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x78]
mov esi, dword [esp + 0x38]
add esi, eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0x5fb3d4e4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + ecx + 0x18]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov eax, dword [ecx + eax + 0x20]
mov cl, byte [esp + 0x93]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov byte [esp + 0x1b], cl
mov ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x20]
not ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
not eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x28]
cmp eax, 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov word [esp + 6], di
je 0x404233
jmp 0x40423f
mov ax, 0x5819
mov ecx, dword [esp + 0x58]
movzx ecx, word [ecx]
mov dword [esp + 0x74], ecx
mov word [esp + 0x7a], 0x440b
mov dx, word [esp + 0x7a]
mov bl, byte [esp + 0x1b]
xor bl, 0xff
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx + 0x1c]
mov byte [esp + 0x93], bl
mov edi, dword [esp + 0x2c]
add edi, esi
mov dword [esp + 0x64], edi
cmp ax, dx
jae 0x404302
jmp 0x4043d4
mov al, byte [esp + 0x4b]
mov ecx, dword [esp + 0x20]
add ecx, 0x13fa0cf6
mov edx, dword [esp + 0x1c]
adc edx, 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
mov ecx, dword [esp + 0x54]
add ecx, 1
mov edx, dword [esp + 8]
sub edx, 0x246e14df
mov ah, byte [esp + 0x53]
cmp al, 0
setne al
mov dword [esp + 0x80], edx
and ah, al
mov si, word [esp + 6]
mov word [esp + 0x86], si
cmp ecx, 0x20
setb al
and ah, al
mov dword [esp + 0x44], ecx
test ah, 1
jne 0x40433a
jmp 0x404299
mov eax, dword [esp + 0x4c]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x20]
or eax, 0x237a9cae
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x24]
mov esi, dword [esp + 0x2c]
add esi, edx
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], esi
mov edx, 0x614f86d4
mov eax, dword [esp + 0x20]
mul edx
imul esi, ecx, 0x614f86d4
add edx, esi
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], eax
jmp 0x40437e
test byte [esp + 0x53], 1
jne 0x404181
mov eax, dword [esp + 0x20]
xor eax, 0x7bc08c79
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x20]
not edx
not ecx
mov esi, dword [esp + 0x6c]
add eax, 2
inc esi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x28]
cmp esi, eax
jb 0x40437e
jmp 0x404233
mov al, byte [esp + 0x1b]
or al, 0x9d
mov byte [esp + 0x93], al
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 8]
add esi, 0x56bea16e
mov ecx, dword [ecx + edx*4]
mov dword [esp + 0x80], esi
mov edx, dword [esp + 0x2c]
add edx, ecx
mov dword [esp + 0x4c], edx
jmp 0x404233
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x5c], 0x504fd826
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x73], dl
mov ecx, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x4c], 0
cmp eax, 0x649d9eda
jne 0x4043d4
jmp 0x404233
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x88], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + eax*4]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], ecx
mov edi, dword [esp + 0x2c]
add edi, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 0
jmp 0x40433a
mov ax, word [esp + 6]
sub ax, 0x6407
mov word [esp + 0x86], ax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
mov bl, byte [edx + ecx]
mov byte [esp + 0x4b], bl
mov bl, byte [esp + 0x73]
cmp bl, byte [esp + 0x4b]
sete bl
and bl, 1
mov byte [esp + 0x53], bl
cmp byte [esp + 0x73], 0
je 0x404299
jmp 0x4041c9