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

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x1c]
and eax, 0xfff
mov ecx, eax
and ecx, 2
shl ecx, 1
xor eax, 2
add eax, ecx
mov ecx, 3
xor edx, edx
div ecx
add eax, 0x796ad838
sub eax, 0x796ad837
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x1c]
mov eax, ecx
and eax, eax
xor eax, 0xffffffff
xor eax, 0xffffffff
or eax, 0x4000
mov edx, ecx
and edx, 0x4000
xor edx, 0xffffffff
xor eax, 0xffffffff
xor edx, 0xffffffff
or eax, edx
and eax, ecx
cmp eax, 0
setne al
and al, 1
movzx eax, al
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x14], eax
mov ecx, dword [esp + 0x1c]
xor ecx, 0xffffffff
and ecx, 0xffffffff
or ecx, 0
or ecx, 0xfffff000
mov eax, ecx
xor eax, 0xffffffff
and eax, 0x5ea443c0
and ecx, 0xa15bbc3f
or eax, ecx
xor eax, 0xa15bbc3f
and eax, 0xffffffff
shr eax, 2
mov ecx, eax
xor ecx, 0xa64483e2
and eax, 0x59bb7c1d
shl eax, 1
sub eax, ecx
add eax, 2
sub eax, 0x59bb7c1e
mov ecx, 3
cdq
idiv ecx
xor eax, 0xffffffff
sub eax, 0xffffffff
mov ecx, 1
sub ecx, eax
mov eax, dword [esp + 0x10]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x1c]
and eax, 0x8000
cmp eax, 0
jne 0x40ea77
mov eax, dword [esp + 0x10]
add eax, 0x29272
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x10000
call fcn.00450760
mov eax, dword [esp + 0x10]
mov dword [eax + 0x44], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x40], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x3c], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x24], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x20], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x1c], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x68], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x48], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x64], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x60], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x5c], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x58], 0
mov eax, dword [esp + 0x10]
add eax, 0x9272
add eax, 1
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x10]
add eax, 0x9272
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x2c], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x2c]
mov byte [eax], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x38], 8
mov eax, dword [esp + 0x10]
add eax, 0x39272
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x10]
add eax, 0x39272
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [eax + 0x6c], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x54], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x50], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x4c], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x18], 1
mov eax, dword [esp + 0x10]
mov dword [eax + 0x70], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x74], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x78], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x7c], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x80], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x84], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x88], 0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x8c], 0
mov eax, dword [esp + 0x1c]
xor eax, 0xffffffff
or eax, 0xffff7fff
xor eax, 0xffffffff
and eax, 0xffffffff
cmp eax, 0
jne 0x40ec28
mov eax, dword [esp + 0x10]
add eax, 0x90
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x8101
call fcn.00450760
jmp 0x40ec2a
mov eax, dword [esp + 0x10]
add eax, 0x8192
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x240
call fcn.00450760
mov eax, dword [esp + 0x10]
add eax, 0x8192
add eax, 0x240
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x40
call fcn.00450760
xor eax, eax
add esp, 0xc
ret