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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a8e95
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0xffffffff
jne 0x40ea0b
xor eax, eax
jmp 0x40f1cd
mov ebp, dword [esp + 0x34]
mov ecx, 0x95
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x58]
mov ebx, 1
cmp eax, ebx
push ebp
jne 0x40ea35
mov eax, dword [esi + 0x14]
push eax
call fcn.0043c310
add esp, 8
jmp 0x40ea3d
mov ecx, dword [esi + 0x68]
call fcn.00414430
mov edi, dword [0x4ae1e8]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x58], ebx
jne 0x40ebf1
call edi
mov edx, dword [esi + 0x3c]
mov ecx, eax
mov eax, dword [esi + 0x4c]
sub ecx, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
cmp ecx, edx
jbe 0x40ebf1
mov eax, dword [ebp + 0x1c]
test eax, eax
ja 0x40ebf1
jb 0x40ea86
cmp dword [ebp + 0x18], ebx
jae 0x40ebf1
mov eax, dword [0x4bf080]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], 0
call edi
mov edx, dword [esi + 0x3c]
mov ecx, eax
sub ecx, edx
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
lea edx, [esp + 0x38]
push 0x4bf0a4
push edx
call fcn.004039e0
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 0x7c]
add esp, 0xc
push ecx
push eax
push 0x1f
mov ecx, 0x4ce6c0
call fcn.004032b0
push 0x90
call fcn.0049fec0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x2c], 1
je 0x40eaf5
mov ecx, eax
call fcn.00413d00
jmp 0x40eaf7
xor eax, eax
mov dword [esi + 0x68], eax
mov edx, dword [0x4ce6c4]
push edx
mov ecx, eax
mov byte [esp + 0x30], 0
call fcn.00413df0
test al, al
jne 0x40eb84
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x40eb4e
mov eax, dword [esi + 0x7c]
push 0
push eax
push 0x20
mov ecx, 0x4ce6c0
call fcn.004032b0
push ebp
mov ecx, esi
mov dword [esi + 0x1c], 3
mov dword [esi + 0x28], ebx
call fcn.00410490
push ebp
mov ecx, esi
call fcn.00410d00
mov ecx, 0x4ce6c0
call fcn.00403250
mov eax, dword [esp + 0x34]
mov edx, dword [0x4bf084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40eb7d
add eax, 0xfffffff4
push eax
call dword [0x4ae20c]
test eax, eax
jg 0x40eb7d
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.0049b190
add esp, 4
mov eax, ebx
jmp 0x40f1cd
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x54]
push edx
mov edx, dword [ebp + 8]
push edx
mov edx, dword [esi + 0x48]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x68]
call fcn.004142c0
mov ebx, 2
mov dword [esi + 0x58], ebx
mov byte [ebp + 0x45], 0
mov eax, dword [esi + 0x14]
push eax
call fcn.0043c430
mov eax, dword [esp + 0x38]
mov edx, dword [0x4bf084]
add esp, 4
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40ebf6
add eax, 0xfffffff4
push eax
call dword [0x4ae20c]
test eax, eax
jg 0x40ebf6
mov edx, dword [esp + 0x34]
lea eax, [edx - 0xc]
push eax
call fcn.0049b190
add esp, 4
jmp 0x40ebf6
mov ebx, 2
xor eax, eax
mov al, byte [ebp + 0x45]
dec eax
cmp eax, 5
ja case.default.0x40ec05
jmp dword [eax*4 + 0x40f1e4]
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x2c]
test eax, eax
jne case.default.0x40ec05
mov eax, dword [esi + 0x28]
test eax, eax
jne case.default.0x40ec05
cmp dword [esi + 0x1c], ebx
je case.default.0x40ec05
mov eax, dword [esi + 0x50]
push 0x4ce72c
push eax
mov dword [esi + 0x2c], 1
call dword [0x4ae47c]
add esp, 8
test eax, eax
je 0x40ee2c
mov eax, dword [ebp + 0xc]
test eax, eax
ja 0x40ee2c
jb 0x40ec6b
cmp dword [ebp + 8], 0x1900000
jae 0x40ee2c
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x50]
lea ebx, [esi + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.00410b60
test eax, eax
jne 0x40ee27
mov eax, 1
push ebp
mov ecx, esi
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x1c], 3
mov dword [esi + 0x28], eax
call fcn.00410490
mov ecx, 0x4ce6c0
call fcn.00403250
mov eax, dword [esi + 0x14]
push eax
call fcn.0043c3b0
mov ecx, dword [esi + 0x14]
push ecx
call fcn.0043c380
mov edx, dword [esi + 0x14]
push edx
call fcn.0043c430
add esp, 0xc
push 0x3e8
call dword [0x4ae1f8]
mov eax, dword [ebx]
push eax
call dword [0x4ae1fc]
mov edi, dword [esi + 0x74]
mov ecx, dword [esi + 0x78]
add esi, 0x6c
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x40eda0
mov ecx, esi
call fcn.0040c880
cmp eax, 1
jbe 0x40ed0c
mov ecx, esi
call fcn.0040c880
mov ebp, eax
jmp 0x40ed11
mov ebp, 1
mov ecx, esi
call fcn.0040c880
add eax, ebp
mov dword [esp + 0x18], eax
jns 0x40ed22
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.0049fec0
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.0040c8a0
push ebx
push 1
push eax
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.0040c8e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 8]
add ecx, 4
push ecx
push edx
push edi
mov ecx, esi
call fcn.0040c8a0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0040c250
mov edx, dword [esi + 4]
push edx
call fcn.0049b190
mov eax, dword [esp + 0x1c]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.0040c880
lea edx, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov dword [esi + 8], edx
jmp case.default.0x40ec05
mov eax, edi
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x40edf0
lea ecx, [edi + 4]
push ecx
push edi
push edi
mov ecx, esi
call fcn.0040c8a0
mov eax, dword [esi + 8]
mov ecx, 1
mov edx, eax
push ebx
sub edx, edi
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.0040c8e0
mov edx, dword [esi + 8]
push ebx
push edx
push edi
call fcn.0040cc10
mov eax, dword [esi + 8]
add esp, 0xc
add eax, 4
mov dword [esi + 8], eax
jmp case.default.0x40ec05
push edi
lea eax, [edi - 4]
push edi
push eax
mov ecx, esi
call fcn.0040c8a0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.0040ccf0
lea ecx, [edi + 4]
push ebx
push ecx
push edi
call fcn.0040cc10
mov eax, dword [esi + 8]
add esp, 0x18
add eax, 4
mov dword [esi + 8], eax
jmp case.default.0x40ec05
mov ebx, 2
mov eax, dword [esi + 0x34]
push eax
call fcn.00438dd0
add esp, 4
test eax, eax
jne 0x40f10c
mov edx, dword [esi + 0x34]
push edx
push 0x4bf9c8
call fcn.0040e020
add esp, 8
mov dword [esi + 0x64], ebx
mov ebx, 1
mov ecx, esi
push ebp
mov dword [esi + 0x60], ebx
mov dword [esi + 0x1c], 3
call fcn.00410490
mov ecx, 0x4ce6c0
call fcn.00403250
mov eax, dword [esi + 0x14]
push eax
call fcn.0043c3b0
mov ecx, dword [esi + 0x14]
push ecx
call fcn.0043c380
mov edx, dword [esi + 0x14]
push edx
call fcn.0043c430
add esp, 0xc
mov dword [esi + 0x28], ebx
push 0x3e8
call dword [0x4ae1f8]
mov eax, dword [esi + 0x34]
push eax
call dword [0x4ae1fc]
mov edi, eax
mov dword [esp + 0x1c], edi
call dword [0x4ae0f8]
push eax
push edi
push 0x4bf9a8
call fcn.0040e020
mov edi, dword [esi + 0x74]
mov eax, dword [esi + 0x78]
sub eax, edi
add esp, 0xc
sar eax, 2
cmp eax, ebx
mov ebp, edi
jae 0x40efeb
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x40eeed
mov eax, edi
sub eax, ecx
sar eax, 2
cmp eax, ebx
ja 0x40eeef
mov eax, ebx
test ecx, ecx
jne 0x40eef7
xor edi, edi
jmp 0x40eefc
sub edi, ecx
sar edi, 2
add eax, edi
test eax, eax
mov dword [esp + 0x10], eax
jge 0x40ef08
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.0049fec0
mov ebx, dword [esi + 0x70]
add esp, 4
mov edi, eax
cmp ebx, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
je 0x40ef57
mov dword [esp + 0x20], edi
test edi, edi
mov dword [esp + 0x2c], 2
je 0x40ef41
push ebx
mov ecx, edi
call fcn.0040d5f0
add ebx, 4
add edi, 4
cmp ebx, ebp
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x18], edi
jne 0x40ef29
lea eax, [esi + 0x34]
push eax
push edi
call fcn.0040d880
mov ebx, dword [esi + 0x74]
add esp, 8
add edi, 4
cmp ebp, ebx
je 0x40ef82
push ebp
push edi
call fcn.0040d880
add ebp, 4
add esp, 8
add edi, 4
cmp ebp, ebx
jne 0x40ef6e
mov ebx, dword [esi + 0x74]
mov edi, dword [esi + 0x70]
cmp edi, ebx
je 0x40ef9a
mov ecx, edi
call fcn.00404300
add edi, 4
cmp edi, ebx
jne 0x40ef8c
mov edx, dword [esi + 0x70]
push edx
call fcn.0049b190
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add esp, 4
lea ecx, [edx + eax*4]
mov dword [esi + 0x78], ecx
mov ecx, dword [esi + 0x70]
test ecx, ecx
jne 0x40efd0
xor eax, eax
mov dword [esi + 0x70], edx
lea eax, [edx + eax*4 + 4]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x1c]
jmp 0x40f1cd
mov eax, dword [esi + 0x74]
mov dword [esi + 0x70], edx
sub eax, ecx
sar eax, 2
lea eax, [edx + eax*4 + 4]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x1c]
jmp 0x40f1cd
mov ecx, edi
sub ecx, ebp
sar ecx, 2
cmp ecx, ebx
jae 0x40f09a
lea ebx, [ebp + 4]
cmp ebp, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebp
je 0x40f043
mov dword [esp + 0x20], ebx
test ebx, ebx
mov dword [esp + 0x2c], 3
je 0x40f025
mov edx, dword [esp + 0x10]
mov ecx, ebx
push edx
call fcn.0040d5f0
mov eax, dword [esp + 0x10]
add ebx, 4
add eax, 4
mov dword [esp + 0x2c], 0xffffffff
cmp eax, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
jne 0x40f009
mov edi, dword [esi + 0x74]
mov eax, 1
mov ecx, edi
sub ecx, ebp
sar ecx, 2
sub eax, ecx
je 0x40f06b
mov ebx, eax
lea eax, [esi + 0x34]
push eax
push edi
call fcn.0040d880
add esp, 8
add edi, 4
dec ebx
jne 0x40f058
mov edi, dword [esi + 0x74]
cmp ebp, edi
je 0x40f0fa
lea eax, [esi + 0x34]
mov ecx, ebp
push eax
call fcn.00406200
add ebp, 4
cmp ebp, edi
jne 0x40f076
mov eax, dword [esi + 0x74]
add eax, 4
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x1c]
jmp 0x40f1cd
lea ebx, [edi - 4]
mov dword [esp + 0x10], edi
cmp ebx, edi
je 0x40f0c5
mov edx, dword [esp + 0x10]
push ebx
push edx
call fcn.0040d880
mov edx, dword [esp + 0x18]
add ebx, 4
add esp, 8
add edx, 4
cmp ebx, edi
mov dword [esp + 0x10], edx
jne 0x40f0a5
mov ebx, dword [esi + 0x74]
lea edi, [ebx - 4]
cmp ebp, edi
je 0x40f0e1
sub edi, 4
sub ebx, 4
push edi
mov ecx, ebx
call fcn.00406200
cmp edi, ebp
jne 0x40f0cf
lea edi, [ebp + 4]
cmp ebp, edi
je 0x40f0fa
lea eax, [esi + 0x34]
mov ecx, ebp
push eax
call fcn.00406200
add ebp, 4
cmp ebp, edi
jne 0x40f0e8
mov eax, dword [esi + 0x74]
add eax, 4
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x1c]
jmp 0x40f1cd
mov ecx, esi
mov dword [esi + 0x1c], ebx
call fcn.0040f250
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], 1
call edi
push ebp
mov ecx, esi
mov dword [esi + 0x44], eax
call fcn.00410490
jmp 0x40f1bf
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x28]
test eax, eax
jne case.default.0x40ec05
mov dword [esi + 0x64], 0
jmp 0x40f1a1
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x28]
test eax, eax
jne case.default.0x40ec05
mov eax, 3
mov dword [esi + 0x64], eax
mov dword [esi + 0x1c], eax
jmp 0x40f1a8
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x28]
test eax, eax
jne case.default.0x40ec05
mov dword [esi + 0x64], 4
jmp 0x40f1a1
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x28]
test eax, eax
jne case.default.0x40ec05
mov dword [esi + 0x64], 5
jmp 0x40f1a1
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x28]
test eax, eax
jne case.default.0x40ec05
mov dword [esi + 0x64], 6
mov dword [esi + 0x1c], 3
push ebp
mov ecx, esi
mov dword [esi + 0x28], 1
call fcn.00410490
push ebp
mov ecx, esi
call fcn.00410d00
mov ecx, 0x4ce6c0
call fcn.00403250
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4