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

Disassembly:
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x80]
jmp 0x40e800
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x40eae2
cmp byte [esp + 0x74], 0
je 0x40eae2
cmp edx, 0xffffffff
je 0x40eae2
cmp edx, esi
jg 0x40eae2
push dword [esp + 0x88]
mov eax, dword [esp + 0x94]
push dword [esp + 0x88]
or eax, dword [esp + 0xa0]
push eax
push edx
mov edx, dword [esp + 0x8c]
push esi
push dword [esp + 0x78]
call fcn.0040f6a0
add esp, 0x18
mov dword [esp + 0x8c], eax
test eax, eax
jle 0x40ead4
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x80]
mov edx, dword [ecx + 4]
mov dword [esp + 0x90], 0
mov edi, dword [ecx]
cmp edi, dword [ecx + 4]
je 0x445879
mov dword [esp + 0x10], edx
mov ecx, eax
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x40eae2
cmp ecx, 2
jge 0x40eaca
xor edi, edi
cmp edi, ecx
jae 0x40e800
mov esi, dword [esp + 0x24]
lea ecx, [edi*8]
mov dword [esp + 0x4c], ecx
cmp edi, eax
jge 0x4458d6
mov eax, dword [esp + 0x64]
mov dword [esp + 0x40], eax
test edi, edi
js fcn.0040eb6a
mov eax, dword [esp + 0x84]
add eax, ecx
mov ecx, dword [0x4a643c]
mov dword [esp + 0x9c], eax
add byte [ebx + 0x302b0470], cl
lea eax, [esi*2 + 2]
push eax
cmp ecx, 0x41d0a9
jne 0x4458ec
invalid
call fcn.0042586c
mov ecx, eax
mov dword [esp + 0x4c], ecx
add esp, 4
test ecx, ecx
je 0x40eb60
mov edx, dword [esp + 0x40]
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
lea eax, [edx + eax*2]
push eax
push ecx
call fcn.00420fa0
mov eax, dword [esp + 0x54]
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x14], eax
mov word [eax + esi*2], cx
test esi, esi
je 0x445902
cmp esi, 0xffffffff
je 0x445902
test eax, eax
je 0x445902
mov eax, dword [ebx]
cmp eax, 1
jle 0x40eb2a
dec eax
push 4
mov dword [ebx], eax
call fcn.00420f16
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40eb74
mov dword [ebx], 1
lea eax, [esi + 1]
mov dword [esp + 0x38], ebx
test eax, eax
je 0x40eb7b
add eax, 7
and eax, 0xfffffff8
xor ecx, ecx
mov dword [esp + 0x34], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420f16
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
add esi, esi
push esi
push dword [esp + 0x18]
push eax
call fcn.00420fa0
mov eax, dword [esp + 0x38]
inc esp
and al, 0x38
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov eax, dword [0x4a6438]
push dword [esp + 0x14]
cmp eax, 0x415623
jne 0x40eb85
call fcn.00422eb5
mov esi, dword [esp + 0x28]
add esp, 4
mov eax, dword [esp + 0x3c]
cmp esi, eax
je 0x40ea63
push 0x10
call fcn.00420f16
add esp, 4
test eax, eax
je 0x40eb8c
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
inc dword [ebx]
mov ecx, dword [esp + 0x20]
inc edi
mov dword [ecx + esi*4], eax
inc esi
mov ecx, dword [esp + 0x4c]
add ecx, 8
mov dword [esp + 0x24], esi
mov dword [esp + 0x4c], ecx
cmp edi, dword [esp + 0x44]
jae 0x40e7ea
mov eax, dword [esp + 0x8c]
jmp 0x40e8c4
add eax, eax
mov dword [esp + 0x3c], eax
cmp eax, 8
jb 0x40eb41
xor ecx, ecx
mov dword [esp + 0x28], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420f16
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x40], eax
test edx, edx
je 0x40eac1
test esi, esi
je 0x40eac1
lea ecx, [esi*4]
push ecx
push edx
push eax
call fcn.00420fa0
mov dword [esp + 0x20], eax
jmp 0x40ea0a
mov edi, 1
cmp dword [esp + 0x90], 0
jne 0x445895
mov eax, dword [esp + 0x24]
test eax, eax
je 0x445918
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
call fcn.00404c30
lea ecx, [esp + 0x1c]
call fcn.00414d34
lea ecx, [esp + 0x2c]
call fcn.00411cb6
lea ecx, [esp + 0x64]
call fcn.004110f4
lea ecx, [esp + 0x64]
call fcn.00411cb6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
lea ecx, [esp + 0x30]
call fcn.00411b7c
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
invalid
invalid
invalid