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

Disassembly:
sub esp, 0x88
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x9c]
push edi
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
cmp dword [esi + 0x80c], 0
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], eax
jne 0x1002e387
push edi
push 0
push ebp
mov ecx, esi
call fcn.1002afc0
test byte [edi], 8
jne 0x1002e3e4
cmp dword [esi + 0x80c], 0
jne 0x1002e3a0
push edi
push 0
push ebp
mov ecx, esi
call fcn.1002afc0
test byte [edi], 8
mov eax, dword [esp + 0x14]
jne 0x1002e3c0
cmp eax, dword [esi + 0x810]
jae 0x1002e3c0
push edi
push esi
mov esi, eax
mov ecx, ebx
push esi
push ebp
call fcn.1002cd30
jmp 0x1002e3e8
cmp eax, 0x3fffffff
jbe 0x1002e3d7
push 1
push 0xfffffbe9
mov ecx, edi
call fcn.1001c550
jmp 0x1002e3e4
push edi
push esi
push dword [ebp + 0x10]
mov ecx, ebx
push ebp
call fcn.1002cd30
mov esi, dword [esp + 0x14]
mov eax, dword [edi]
and eax, 8
jne 0x1002e3fd
cmp dword [ebx + 0x810], esi
sbb ecx, ecx
neg ecx
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x1002e49f
mov eax, dword [ebx + 0x808]
test eax, eax
je 0x1002e43c
cmp esi, 0x6f0
ja 0x1002e43c
cmp dword [ebx + 0x804], 0
jne 0x1002e43c
push dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push dword [ebp + 4]
add eax, 4
add eax, ebx
push eax
call fcn.10044ea0
add esp, 0xc
jmp 0x1002e831
xor edx, edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x18], edx
test eax, eax
jne 0x1002e470
mov ecx, dword [ebx + 0x818]
test ecx, ecx
je 0x1002e470
cmp dword [ecx + 4], edx
jle 0x1002e470
push eax
call fcn.1000bb20
cmp dword [eax], 0
jne 0x1002e4ae
mov eax, dword [ebx + 0x810]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
push edi
cmova ecx, eax
lea eax, [ebx + 4]
push ecx
push eax
lea eax, [esp + 0x3c]
mov ecx, ebx
push eax
push ebp
call fcn.1002a9a0
test byte [edi], 8
je 0x1002e4ae
lea ecx, [esp + 0x30]
call fcn.1002fc20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0xc
mov ecx, dword [ebp + 0x10]
mov eax, 0x2040811
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xa
test byte [edi], 8
mov dword [esp + 0x20], ecx
jne 0x1002e824
lea eax, [ecx - 1]
mov dword [esp + 0x24], eax
imul eax, ecx, 0x7f0
mov dword [esp + 0x28], eax
nop
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x18]
cmp eax, esi
jae 0x1002e824
mov edx, eax
sub esi, eax
sub edx, dword [esp + 0x28]
mov eax, 0x7f0
add edx, dword [ebp + 0x10]
sub eax, edx
mov dword [esp + 0x10], edx
cmp eax, esi
cmovb esi, eax
mov eax, dword [ebx + 0x818]
mov dword [esp + 0x1c], esi
cmp ecx, dword [eax + 4]
jl 0x1002e51d
xor ebp, ebp
jmp 0x1002e52f
push ecx
mov ecx, eax
call fcn.1000bb20
mov ebp, dword [eax]
test ebp, ebp
jne 0x1002e63e
push edi
lea eax, [esp + 0x34]
mov dword [esp + 0x14], 0
push eax
push dword [esp + 0xa4]
mov ecx, ebx
call fcn.1002a750
test byte [edi], 8
jne 0x1002e7f5
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
call fcn.1001b080
mov ebp, eax
test ebp, ebp
jne 0x1002e57a
push 1
push 0xfffffc0c
mov ecx, edi
call fcn.1001c550
jmp 0x1002e5ce
lea eax, [esi + 4]
push eax
push 1
push ebp
lea ecx, [esp + 0x3c]
call fcn.1001b590
test byte [edi], 8
jne 0x1002e5fe
mov eax, dword [ebx + 0x81c]
lea ecx, [esp + 0x30]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x78]
push eax
push ebp
call fcn.1001b410
mov eax, dword [esp + 0x9c]
push esi
mov eax, dword [eax + 4]
add eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x80]
add eax, 4
push eax
call fcn.10044ea0
add esp, 0xc
test byte [edi], 8
jne 0x1002e5fe
lea ecx, [esp + 0x30]
call fcn.1002fcb0
mov ecx, dword [ebx + 0x818]
lea eax, [esp + 0x1c]
push edi
push eax
push dword [esp + 0x28]
mov dword [esp + 0x28], ebp
call fcn.1000bbc0
test byte [edi], 8
je 0x1002e76a
lea ecx, [esp + 0x30]
mov dword [esp + 0x64], 1
call fcn.1002fc80
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [ebx + 0x82c]
push 1
push eax
call fcn.10043c70
test dword [esp + 0x64], 0xfffffffe
je 0x1002e761
lea ecx, [esp + 0x64]
call fcn.1001c3d0
jmp 0x1002e761
cmp dword [ebx + 0x824], 4
mov eax, dword [ebx + 0x81c]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x814]
jge 0x1002e67d
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 0x38]
push 0
push dword [ebx + 0x82c]
mov ecx, ebp
shr ecx, 8
push edi
push ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [eax + 0x10]
call fcn.10019590
jmp 0x1002e69a
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x28]
mov eax, ebp
push ecx
push edi
push 1
mov ecx, dword [ecx + 8]
shr eax, 8
push eax
lea eax, [esp + 0x40]
push eax
call fcn.10019510
lea eax, [esp + 0x54]
push eax
push ebp
lea ecx, [esp + 0x38]
call fcn.1001b410
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
add eax, 0xfffffffc
lea edx, [esi + ecx]
mov dword [esp + 0x40], edx
cmp eax, edx
jb 0x1002e6ea
cmp dword [esp + 0x2c], 0
jne 0x1002e6ea
mov eax, dword [esp + 0x9c]
push esi
mov eax, dword [eax + 4]
add eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
add eax, 4
add eax, ecx
push eax
call fcn.10044ea0
add esp, 0xc
jmp 0x1002e74f
push dword [esp + 0x58]
lea esi, [ebx + 4]
push dword [esp + 0x58]
push esi
call fcn.10044ea0
mov eax, dword [esp + 0xa8]
push dword [esp + 0x28]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
add eax, 8
add eax, ebx
push eax
call fcn.10044ea0
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x48]
add esp, 0x18
mov dword [esi], 0
add eax, 4
push eax
push esi
push ebp
call fcn.1001b4e0
test eax, eax
jne 0x1002e74b
push 1
push 0xfffffc0c
mov ecx, edi
call fcn.1001c550
mov esi, dword [esp + 0x1c]
test byte [edi], 8
jne 0x1002e7f5
lea ecx, [esp + 0x30]
call fcn.1002fcb0
test byte [edi], 8
jne 0x1002e7f5
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1002e7f9
mov ecx, dword [ebx + 0x818]
mov eax, dword [esp + 0x24]
cmp eax, dword [ecx + 4]
jl 0x1002e789
xor eax, eax
jmp 0x1002e791
push eax
call fcn.1000bb20
mov eax, dword [eax]
push edi
push eax
mov dword [esp + 0x18], eax
mov ecx, ebx
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0
push eax
mov dword [esp + 0x54], 0
call fcn.1002c2d0
test byte [edi], 8
jne 0x1002e7ec
mov eax, dword [ebx + 0x81c]
lea ecx, [esp + 0x44]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x14]
call fcn.1001b410
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x44]
mov dword [eax], ebp
call fcn.1002fcb0
lea ecx, [esp + 0x44]
call fcn.1002fc20
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
and eax, 8
jne 0x1002e815
add dword [esp + 0x28], 0x7f0
inc ecx
inc dword [esp + 0x24]
add dword [esp + 0x18], esi
mov dword [esp + 0x20], ecx
mov ebp, dword [esp + 0x9c]
test eax, eax
je 0x1002e4e0
lea ecx, [esp + 0x30]
call fcn.1002fc20
mov esi, dword [esp + 0x14]
test byte [edi], 8
jne 0x1002e49f
cmp dword [esp + 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x820], 0
je 0x1002e854
mov dword [ebx + 0x810], esi
cmp dword [ebp + 0x18], 1
jne 0x1002e4a1
cmp dword [ebx + 0x804], 0
jne 0x1002e4a1
pop edi
pop esi
pop ebp
mov dword [ebx + 0x804], 1
pop ebx
add esp, 0x88
ret 0xc