Function at 0x1002e290
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 0x1002e2d7
push edi
push 0
push ebp
mov ecx, esi
call fcn.1002af10
test byte [edi], 8
jne 0x1002e334
cmp dword [esi + 0x80c], 0
jne 0x1002e2f0
push edi
push 0
push ebp
mov ecx, esi
call fcn.1002af10
test byte [edi], 8
mov eax, dword [esp + 0x14]
jne 0x1002e310
cmp eax, dword [esi + 0x810]
jae 0x1002e310
push edi
push esi
mov esi, eax
mov ecx, ebx
push esi
push ebp
call fcn.1002cc80
jmp 0x1002e338
cmp eax, 0x3fffffff
jbe 0x1002e327
push 1
push 0xfffffbe9
mov ecx, edi
call fcn.1001c540
jmp 0x1002e334
push edi
push esi
push dword [ebp + 0x10]
mov ecx, ebx
push ebp
call fcn.1002cc80
mov esi, dword [esp + 0x14]
mov eax, dword [edi]
and eax, 8
jne 0x1002e34d
cmp dword [ebx + 0x810], esi
sbb ecx, ecx
neg ecx
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x1002e3ef
mov eax, dword [ebx + 0x808]
test eax, eax
je 0x1002e38c
cmp esi, 0x6f0
ja 0x1002e38c
cmp dword [ebx + 0x804], 0
jne 0x1002e38c
push dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push dword [ebp + 4]
add eax, 4
add eax, ebx
push eax
call fcn.10044de0
add esp, 0xc
jmp 0x1002e781
xor edx, edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x18], edx
test eax, eax
jne 0x1002e3c0
mov ecx, dword [ebx + 0x818]
test ecx, ecx
je 0x1002e3c0
cmp dword [ecx + 4], edx
jle 0x1002e3c0
push eax
call fcn.1000bb20
cmp dword [eax], 0
jne 0x1002e3fe
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.10060f38
test byte [edi], 8
je 0x1002e3fe
lea ecx, [esp + 0x30]
call fcn.1002fb70
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 0x1002e774
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 0x1002e774
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 0x1002e46d
xor ebp, ebp
jmp 0x1002e47f
push ecx
mov ecx, eax
call fcn.1000bb20
mov ebp, dword [eax]
test ebp, ebp
jne 0x1002e58e
push edi
lea eax, [esp + 0x34]
mov dword [esp + 0x14], 0
push eax
push dword [esp + 0xa4]
mov ecx, ebx
call fcn.1002a6a0
test byte [edi], 8
jne 0x1002e745
push 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
call fcn.1001b070
mov ebp, eax
test ebp, ebp
jne 0x1002e4ca
push 1
push 0xfffffc0c
mov ecx, edi
call fcn.1001c540
jmp 0x1002e51e
lea eax, [esi + 4]
push eax
push 1
push ebp
lea ecx, [esp + 0x3c]
call fcn.1001b580
test byte [edi], 8
jne 0x1002e54e
mov eax, dword [ebx + 0x81c]
lea ecx, [esp + 0x30]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x78]
push eax
push ebp
call fcn.1001b400
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.10044de0
add esp, 0xc
test byte [edi], 8
jne 0x1002e54e
lea ecx, [esp + 0x30]
call fcn.1002fc00
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 0x1002e6ba
lea ecx, [esp + 0x30]
mov dword [esp + 0x64], 1
call fcn.1002fbd0
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [ebx + 0x82c]
push 1
push eax
call fcn.10043bb0
test dword [esp + 0x64], 0xfffffffe
je 0x1002e6b1
lea ecx, [esp + 0x64]
call fcn.1001c3c0
jmp 0x1002e6b1
cmp dword [ebx + 0x824], 4
mov eax, dword [ebx + 0x81c]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x814]
jge 0x1002e5cd
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 0x1002e5ea
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.1001b400
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 0x1002e63a
cmp dword [esp + 0x2c], 0
jne 0x1002e63a
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.10044de0
add esp, 0xc
jmp 0x1002e69f
push dword [esp + 0x58]
lea esi, [ebx + 4]
push dword [esp + 0x58]
push esi
call fcn.10044de0
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.10044de0
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.1001b4d0
test eax, eax
jne 0x1002e69b
push 1
push 0xfffffc0c
mov ecx, edi
call fcn.1001c540
mov esi, dword [esp + 0x1c]
test byte [edi], 8
jne 0x1002e745
lea ecx, [esp + 0x30]
call fcn.1002fc00
test byte [edi], 8
jne 0x1002e745
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1002e749
mov ecx, dword [ebx + 0x818]
mov eax, dword [esp + 0x24]
cmp eax, dword [ecx + 4]
jl 0x1002e6d9
xor eax, eax
jmp 0x1002e6e1
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.1002c220
test byte [edi], 8
jne 0x1002e73c
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.1001b400
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x44]
mov dword [eax], ebp
call fcn.1002fc00
lea ecx, [esp + 0x44]
call fcn.1002fb70
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
and eax, 8
jne 0x1002e765
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 0x1002e430
lea ecx, [esp + 0x30]
call fcn.1002fb70
mov esi, dword [esp + 0x14]
test byte [edi], 8
jne 0x1002e3ef
cmp dword [esp + 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x820], 0
je 0x1002e7a4
mov dword [ebx + 0x810], esi
cmp dword [ebp + 0x18], 1
jne 0x1002e3f1
cmp dword [ebx + 0x804], 0
jne 0x1002e3f1
pop edi
pop esi
pop ebp
mov dword [ebx + 0x804], 1
pop ebx
add esp, 0x88
ret 0xc