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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov esi, ecx
and esi, 0x4271aca5
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x68], 0x4ae70f5c
mov byte [esp + 0x67], 0x7a
mov dword [esp + 0x50], 0x1f338632
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
call fcn.004026b0
mov ecx, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
call fcn.00402640
mov ecx, dword [esp + 0x20]
add ecx, dword [eax + 0x78]
mov eax, ecx
add eax, 0x20
mov edx, dword [esp + 0x68]
add edx, 0xf2f4c5d
mov esi, dword [esp + 0x1c]
imul esi, edx
cmp esi, 0x7bd37c1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
je 0x40329e
jmp 0x403236
mov eax, 0x4ae70f5d
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
cmp byte [esp + 0x3b], 0
setne cl
and cl, byte [esp + 0x5f]
sub eax, dword [esp + 0x68]
add eax, dword [esp + 0x44]
cmp eax, 0x20
setb dl
and cl, dl
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
or eax, 0x7d4d3c4d
mov dword [esp + 0x6c], eax
test cl, 1
jne 0x4031d6
test byte [esp + 0x5f], 1
jne 0x4032f8
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov ecx, dword [esp + 0x48]
inc ecx
mov edx, dword [esp + 0x3c]
add edx, 2
mov dword [esp + 0x30], edx
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x74], edx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x70], esi
mov dword [esp + 0x60], 0
cmp ecx, eax
jmp 0x453fba
mov eax, dword [esp + 0x1c]
imul eax, eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
xor ecx, 0x2b7130de
mov edx, dword [esp + 0x24]
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
add esi, esi
mov dword [esp + 0x6c], esi
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov ecx, dword [esp + 0x20]
add ecx, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], eax
mov cl, byte [esp + 0x67]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x2c]
movzx edi, byte [esi + eax]
mov ebx, edi
mov ch, bl
movzx eax, byte [edx + eax]
mov edx, eax
mov dh, 0x7a
sub dh, cl
mov byte [esp + 0x3b], ch
mov ebx, dword [esp + 0x28]
add ebx, 0xd1e2d06a
mov esi, dword [esp + 0x24]
adc esi, 0xffffffff
sub eax, edi
sete cl
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
and cl, 1
mov byte [esp + 0x5f], cl
cmp dl, dh
mov dword [esp + 0x10], eax
je 0x403129
jmp 0x4030de
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [esp + 0x28]
mov bl, cl
mov ecx, 0x34eca51b
xor esi, esi
mov dword [esp + 0xc], ecx
mov cl, bl
mov edi, esi
mov eax, dword [esp + 0xc]
shld edi, eax, cl
mov cl, bl
shl eax, cl
test bl, 0x20
cmovne edi, eax
cmovne eax, esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x18]
add eax, 0x18
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov edx, dword [esp + 0x68]
add edx, 0xb518f0a4
mov dword [esp + 0x60], 0
cmp eax, edx
je 0x4032ec
mov eax, dword [esp + 0x28]
mov cl, al
mov byte [esp + 0xb], cl
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
shld eax, edx, cl
mov cl, byte [esp + 0xb]
shl edx, cl
xor esi, esi
mov cl, byte [esp + 0xb]
test cl, 0x20
cmovne eax, edx
cmovne edx, esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add eax, dword [edx + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], 0
jmp 0x40316e
mov eax, dword [esp + 0x60]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x3c]
movzx edx, word [edx]
mov esi, dword [esp + 0x1c]
mov dword [esp + 4], ecx
mov ecx, esi
shr esi, cl
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 4]
add esi, edi
mov edi, dword [esp + 0x20]
add edi, dword [esi + edx*4]
mov dword [esp + 0x60], edi
jmp 0x4032ec