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

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x70]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x70]
push edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x20], 0
mov eax, dword [esi + 8]
add eax, dword [esi + 0x10]
cmp dword [ebp + 0x80c], 0
mov dword [esp + 0x10], eax
jne 0x1002dc3b
push edi
push 0
push esi
mov ecx, ebp
call fcn.1002a930
test byte [edi], 8
jne 0x1002dc98
cmp dword [ebp + 0x80c], 0
jne 0x1002dc54
push edi
push 0
push esi
mov ecx, ebp
call fcn.1002a930
test byte [edi], 8
mov eax, dword [esp + 0x10]
jne 0x1002dc74
cmp eax, dword [ebp + 0x810]
jae 0x1002dc74
push edi
push ebp
mov ebp, eax
mov ecx, ebx
push ebp
push esi
call fcn.1002c690
jmp 0x1002dc9c
cmp eax, 0x3fffffff
jbe 0x1002dc8b
push 1
push 0xfffffbe9
mov ecx, edi
call fcn.1001c1e0
jmp 0x1002dc98
push edi
push ebp
push dword [esi + 0x10]
mov ecx, ebx
push esi
call fcn.1002c690
mov ebp, dword [esp + 0x10]
mov eax, dword [edi]
and eax, 8
jne 0x1002dcb1
cmp dword [ebx + 0x810], ebp
sbb ecx, ecx
neg ecx
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x1002dd53
mov eax, dword [ebx + 0x808]
test eax, eax
je 0x1002dcf0
cmp ebp, 0x6f0
ja 0x1002dcf0
cmp dword [ebx + 0x804], 0
jne 0x1002dcf0
push dword [esi + 8]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
add eax, 4
add eax, ebx
push eax
call fcn.10043e70
add esp, 0xc
jmp 0x1002e0a4
xor ecx, ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x78], ecx
test eax, eax
jne 0x1002dd24
mov ecx, dword [ebx + 0x818]
test ecx, ecx
je 0x1002dd24
cmp dword [ecx + 4], eax
jle 0x1002dd24
push eax
call fcn.1000b950
cmp dword [eax], 0
jne 0x1002dd5f
mov eax, dword [ebx + 0x810]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
push edi
cmova ecx, eax
lea eax, [ebx + 4]
push ecx
push eax
lea eax, [esp + 0x50]
mov ecx, ebx
push eax
push esi
call fcn.1002a320
test byte [edi], 8
je 0x1002dd5f
lea ecx, [esp + 0x44]
call fcn.1002f490
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0xc
mov ebp, dword [esi + 0x10]
mov eax, 0x2040811
mul ebp
sub ebp, edx
shr ebp, 1
add ebp, edx
shr ebp, 0xa
test byte [edi], 8
mov dword [esp + 0x14], ebp
jne 0x1002e097
lea eax, [ebp - 1]
mov dword [esp + 0x1c], eax
imul eax, ebp, 0x7f0
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x78]
cmp eax, ecx
jae 0x1002e097
mov edx, eax
sub ecx, eax
sub edx, dword [esp + 0x18]
mov eax, 0x7f0
add edx, dword [esi + 0x10]
sub eax, edx
mov dword [esp + 0x24], edx
cmp eax, ecx
cmovb ecx, eax
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebx + 0x818]
cmp ebp, dword [ecx + 4]
jl 0x1002ddcd
xor ebp, ebp
jmp 0x1002dddd
push ebp
call fcn.1000b950
mov ebp, dword [eax]
test ebp, ebp
jne 0x1002ded1
push edi
lea eax, [esp + 0x48]
mov dword [esp + 0x2c], 0
push eax
push esi
mov ecx, ebx
call fcn.1002a0a0
test byte [edi], 8
jne 0x1002e067
push 4
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
call fcn.1001adb0
mov ebp, eax
test ebp, ebp
jne 0x1002de22
push 1
push 0xfffffc0c
mov ecx, edi
call fcn.1001c1e0
jmp 0x1002de61
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x44]
add eax, 4
push eax
push 1
push ebp
call fcn.1001b280
lea eax, [esp + 0x34]
push eax
push ebp
lea ecx, [esp + 0x4c]
call fcn.1001b110
mov eax, dword [esi + 4]
add eax, dword [esp + 0x78]
push dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x3c]
add eax, 4
push eax
call fcn.10043e70
add esp, 0xc
test byte [edi], 8
jne 0x1002de91
lea ecx, [esp + 0x44]
call fcn.1002f520
mov ecx, dword [ebx + 0x818]
lea eax, [esp + 0x24]
push edi
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x30], ebp
call fcn.1000b9f0
test byte [edi], 8
je 0x1002dff4
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 1
call fcn.1002f4f0
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [ebx + 0x828]
push 1
push eax
call fcn.10042e10
test dword [esp + 0x5c], 0xfffffffe
je 0x1002dfef
lea ecx, [esp + 0x5c]
call fcn.1001c060
jmp 0x1002dfef
cmp dword [ebx + 0x820], 4
mov eax, dword [ebx + 0x814]
jge 0x1002df06
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 0x38]
push 0
push dword [ebx + 0x828]
mov ecx, ebp
shr ecx, 8
push edi
push ecx
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [eax + 0x10]
call fcn.10019460
jmp 0x1002df23
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 + 0x54]
push eax
call fcn.100193e0
lea eax, [esp + 0x2c]
push eax
push ebp
lea ecx, [esp + 0x4c]
call fcn.1001b110
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
lea eax, [ecx + edx]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffffc
cmp eax, dword [esp + 0x28]
jb 0x1002df72
cmp dword [esp + 0x20], 0
jne 0x1002df72
mov eax, dword [esi + 4]
add eax, dword [esp + 0x78]
push ecx
push eax
mov eax, dword [esp + 0x34]
add eax, 4
add eax, edx
push eax
call fcn.10043e70
add esp, 0xc
jmp 0x1002dfdd
push dword [esp + 0x30]
lea esi, [ebx + 4]
push dword [esp + 0x30]
push esi
call fcn.10043e70
mov eax, dword [esp + 0x80]
push dword [esp + 0x88]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x38]
add eax, 8
add eax, ebx
push eax
call fcn.10043e70
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x5c]
add esp, 0x18
mov dword [esi], 0
add eax, 4
push eax
push esi
push ebp
call fcn.1001b1d0
test eax, eax
jne 0x1002dfd9
push 1
push 0xfffffc0c
mov ecx, edi
call fcn.1001c1e0
mov esi, dword [esp + 0x74]
test byte [edi], 8
jne 0x1002e067
lea ecx, [esp + 0x44]
call fcn.1002f520
test byte [edi], 8
jne 0x1002e067
cmp dword [esp + 0x14], 0
je 0x1002e067
mov ecx, dword [ebx + 0x818]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 4]
jl 0x1002e00e
xor eax, eax
jmp 0x1002e016
push eax
call fcn.1000b950
mov eax, dword [eax]
push edi
push eax
mov dword [esp + 0x30], eax
mov ecx, ebx
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0
push eax
mov dword [esp + 0x60], 0
call fcn.1002bbd0
test byte [edi], 8
jne 0x1002e05e
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x2c]
lea ecx, [esp + 0x58]
call fcn.1001b110
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x50]
mov dword [eax], ebp
call fcn.1002f520
lea ecx, [esp + 0x50]
call fcn.1002f490
mov eax, dword [edi]
mov ebp, dword [esp + 0x14]
and eax, 8
jne 0x1002e08f
mov ecx, dword [esp + 0x78]
inc ebp
add dword [esp + 0x18], 0x7f0
inc dword [esp + 0x1c]
add ecx, dword [esp + 0x7c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x78], ecx
test eax, eax
je 0x1002dd90
lea ecx, [esp + 0x44]
call fcn.1002f490
mov ebp, dword [esp + 0x10]
test byte [edi], 8
jne 0x1002dd53
cmp dword [esp + 0x20], 0
mov eax, dword [esi + 8]
mov dword [ebx + 0x81c], 0
je 0x1002e0c7
mov dword [ebx + 0x810], ebp
cmp dword [esi + 0x18], 1
jne 0x1002dd55
cmp dword [ebx + 0x804], 0
jne 0x1002dd55
pop edi
pop esi
pop ebp
mov dword [ebx + 0x804], 1
pop ebx
add esp, 0x60
ret 0xc