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

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x54]
push ebp
mov eax, dword [eax]
mov ebp, ecx
imul ecx, dword [esp + 0x5c], 0x6c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
push esi
mov esi, 1
mov dword [esp + 0x10], 1
add eax, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc], eax
mov eax, ebx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov ecx, eax
shl esi, cl
mov ecx, dword [esp + 0xc]
push edi
mov dword [esp + 0x18], esi
mov eax, dword [ecx + 0x14]
dec eax
div esi
lea edi, [eax + 1]
mov eax, dword [ecx + 0x58]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], eax
test eax, eax
js 0x1002a8a2
mov edi, dword [ecx + 0x28]
mov ecx, edi
shr esi, cl
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0x20]
imul eax, esi
push eax
lea eax, [ebx + 1]
cdq
sub eax, edx
imul edx, dword [esp + 0x34], 0x6c
push esi
sar eax, 1
mov esi, 1
mov ecx, eax
mov eax, dword [esp + 0x40]
shl esi, cl
mov ecx, edi
shr esi, cl
mov ecx, ebp
imul esi, dword [esp + 0x74]
mov edx, dword [edx + eax + 4]
push esi
call fcn.100214b0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
cmp dword [esp + 0x64], 0
mov esi, dword [esp + 0x68]
jle 0x1002aa35
lea eax, [ebx + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
mov ecx, dword [esp + 0x10]
mov edi, edx
imul edi, esi
mov dword [esp + 0x2c], edx
xor edx, edx
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x4c]
mov eax, dword [eax + edi*4]
div dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [ecx + edi*4]
dec eax
div dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea edi, [eax + 1]
or edi, 1
mov dword [esp + 0x1c], edi
cmp edx, 1
jbe 0x1002a905
test dl, 1
jne 0x1002a905
dec edx
test edx, edx
mov eax, 1
cmove edx, eax
cmp byte [esp + 0x6c], 0
mov dword [esp + 0x14], edx
je 0x1002a9bb
mov dword [esp + 0x2c], eax
cmp edx, eax
jbe 0x1002aa31
mov edi, eax
lea esp, [esp]
mov ecx, dword [esp + 0x54]
push edi
push esi
push ebx
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x1002a97a
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x1c]
mov edx, ebx
inc eax
push eax
push dword [esp + 0x34]
push esi
push ecx
mov ecx, ebp
call fcn.10038400
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x30]
push esi
push ebx
call dword [edi]
mov edi, dword [esp + 0x2c]
jmp 0x1002a9a4
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
push edi
push esi
mov eax, dword [eax]
push ebx
mov ecx, dword [eax + ecx - 0x68]
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push eax
push edi
push esi
mov ecx, dword [ecx + edx + 4]
push ebx
mov edx, dword [ecx]
call dword [edx]
add edi, 2
mov dword [esp + 0x2c], edi
cmp edi, dword [esp + 0x14]
jb 0x1002a930
mov edi, dword [esp + 0x1c]
jmp 0x1002aa31
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x2c]
shr eax, cl
imul eax, esi
shr ebx, cl
mov ecx, ebp
mov dword [esp + 0x2c], eax
lea edi, [ebx + ebx]
mov eax, ebx
imul eax, edx
push edi
push eax
mov eax, dword [esp + 0x18]
push ebx
push dword [esp + 0x38]
mov edx, dword [eax - 0x68]
call fcn.100214b0
mov eax, dword [esp + 0x20]
xor edx, edx
push edi
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x2c]
inc eax
imul eax, ebx
imul ebx, edi
push eax
mov eax, dword [esp + 0x64]
push ebx
push dword [esp + 0x48]
mov edx, dword [eax]
mov eax, dword [esp + 0x50]
mov edx, dword [edx + eax - 0x68]
call fcn.100214b0
mov ebx, dword [esp + 0x80]
add esp, 0x20
mov ecx, dword [esp + 0x10]
cmp esi, 1
jbe 0x1002adc1
lea eax, [ebx + 1]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x18]
dec eax
div dword [esp + 0x34]
cmp esi, eax
jae 0x1002adc1
cmp byte [esp + 0x70], 0
jne 0x1002adc1
mov eax, dword [ecx + 0x14]
xor edx, edx
dec eax
div dword [esp + 0x18]
mov edx, dword [esp + 0x14]
inc eax
cmp edi, eax
jne 0x1002adc5
cmp edi, 5
jbe 0x1002adc5
cmp edx, 1
jne 0x1002adc5
cmp byte [esp + 0x6c], 0
je 0x1002aae9
mov ecx, dword [esp + 0x54]
push edx
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x1002aae5
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x1c]
mov edx, ebx
inc eax
push eax
push 1
push esi
push ecx
mov ecx, ebp
call fcn.10038400
add esp, 0x14
mov ecx, ebp
push eax
push 1
push esi
call dword [edi + 0x28]
jmp 0x1002ab3f
mov ecx, dword [esp + 0x10]
push dword [esp + 0x74]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push 1
push esi
push ebx
push dword [esp + 0x70]
push ebp
push ecx
mov ecx, dword [esp + 0x80]
call fcn.10039a00
mov ecx, dword [esp + 0x44]
add esp, 0x24
mov edi, eax
sub ecx, edi
push ecx
mov ecx, dword [esp + 0x28]
sub ecx, edi
push ecx
push dword [esp + 0x64]
mov ecx, dword [esp + 0x34]
call fcn.1001fbd0
mov edx, dword [ebp]
add eax, edi
push eax
push 1
push esi
mov ecx, ebp
call dword [edx + 0x28]
mov edi, dword [esp + 0x1c]
mov ebx, 3
lea eax, [edi - 2]
mov dword [esp + 0x14], eax
cmp eax, ebx
jbe 0x1002ac42
cmp byte [esp + 0x6c], 0
je 0x1002aba2
mov ecx, dword [esp + 0x54]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x1002aba2
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
inc eax
push eax
push ebx
push esi
push ecx
mov ecx, ebp
call fcn.10038400
add esp, 0x14
mov ecx, ebp
push eax
push ebx
push esi
call dword [edi + 0x28]
jmp 0x1002ac31
push dword [esp + 0x74]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x60]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push esi
push dword [esp + 0x74]
push dword [esp + 0x70]
push ebp
push dword [esp + 0x30]
call fcn.10039d80
mov edi, dword [esp + 0x48]
mov ecx, eax
mov eax, dword [esp + 0x44]
sub edi, ecx
sub eax, ecx
mov dword [esp + 0x50], ecx
add esp, 0x24
mov dword [esp + 0x34], eax
cmp edi, eax
je 0x1002ac23
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
call fcn.10020f40
mov edx, dword [esp + 0x28]
push dword [esp + 0x34]
mov dword [esp + 0x48], eax
lea ecx, [edx + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx]
mov edx, edi
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
call fcn.100356a0
mov ecx, dword [esp + 0x30]
add esp, 4
mov edi, eax
mov edx, dword [ebp]
lea eax, [edi + ecx]
push eax
push ebx
push esi
mov ecx, ebp
call dword [edx + 0x28]
add ebx, 2
cmp ebx, dword [esp + 0x14]
jb 0x1002ab57
mov edi, dword [esp + 0x1c]
cmp ebx, edi
jae 0x1002ad3a
lea ebx, [ebx]
cmp byte [esp + 0x6c], 0
je 0x1002ac9f
mov ecx, dword [esp + 0x54]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x1002ac9f
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
inc eax
push eax
push ebx
push esi
push ecx
mov ecx, ebp
call fcn.10038400
add esp, 0x14
mov ecx, ebp
push eax
push ebx
push esi
call dword [edi + 0x28]
mov edi, dword [esp + 0x1c]
jmp 0x1002ad2f
push dword [esp + 0x74]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x60]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push esi
push dword [esp + 0x74]
push dword [esp + 0x70]
push ebp
push dword [esp + 0x30]
call fcn.10039a00
mov ecx, dword [esp + 0x44]
mov edx, eax
mov eax, dword [esp + 0x48]
sub ecx, edx
sub eax, edx
mov dword [esp + 0x38], edx
add esp, 0x24
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], eax
cmp eax, ecx
je 0x1002ad20
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
call fcn.10020f40
mov edx, dword [esp + 0x28]
push dword [esp + 0x34]
mov dword [esp + 0x48], eax
lea ecx, [edx + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
call fcn.100356a0
add esp, 4
add eax, dword [esp + 0x14]
mov ecx, ebp
mov edx, dword [ebp]
push eax
push ebx
push esi
call dword [edx + 0x28]
add ebx, 2
cmp ebx, edi
jb 0x1002ac50
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x64], 0
jle 0x1002af7b
cmp byte [esp + 0x6c], 0
je 0x1002af7b
mov eax, dword [ecx + 0x14]
xor edx, edx
dec eax
div dword [esp + 0x18]
inc eax
cmp edi, eax
jae 0x1002af7b
mov ebx, dword [esp + 0x60]
jmp 0x1002ad70
mov ecx, dword [esp + 0x54]
push edi
push esi
push ebx
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x1002af38
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x1c]
mov edx, ebx
inc eax
push eax
push dword [esp + 0x24]
push esi
push ecx
mov ecx, ebp
call fcn.10038400
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x20]
push esi
push ebx
call dword [edi]
mov edi, dword [esp + 0x1c]
jmp 0x1002af5d
mov edx, dword [esp + 0x14]
cmp edx, edi
jae 0x1002ad3e
lea ecx, [ecx]
cmp byte [esp + 0x6c], 0
je 0x1002ae27
mov ecx, dword [esp + 0x54]
push edx
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x1002ae1f
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x78]
mov edi, dword [ebp]
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x1c]
mov edx, ebx
inc eax
push eax
push dword [esp + 0x1c]
push esi
push ecx
mov ecx, ebp
call fcn.10038400
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x18]
push esi
call dword [edi + 0x28]
jmp 0x1002af18
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0x70], 0
je 0x1002ae70
mov ecx, dword [ecx + 0x10]
push edx
push esi
push ebx
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jle 0x1002ae70
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push edi
push esi
mov ecx, dword [eax + 0x10]
push ebx
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x64]
sub ecx, eax
mov eax, dword [esp + 0x4c]
imul ecx, ecx, 0x6c
push edi
push esi
mov eax, dword [eax]
push ebx
mov ecx, dword [ecx + eax + 4]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x1002af0d
push dword [esp + 0x74]
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x60]
push eax
lea eax, [esp + 0x2c]
push eax
push edi
push esi
push ebx
push dword [esp + 0x70]
push ebp
push dword [esp + 0x30]
call fcn.10039a00
mov edx, dword [esp + 0x44]
mov ecx, eax
mov eax, dword [esp + 0x48]
add esp, 0x24
cmp byte [esp + 0x70], 0
mov dword [esp + 0x34], ecx
je 0x1002aec1
cmp ecx, edx
jg 0x1002aebb
cmp ecx, eax
jge 0x1002aec1
mov ecx, eax
mov dword [esp + 0x34], eax
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
cmp eax, edx
je 0x1002af0b
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
call fcn.10020f40
mov edx, dword [esp + 0x28]
push dword [esp + 0x2c]
mov dword [esp + 0x48], eax
lea ecx, [edx + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
call fcn.100356a0
mov ecx, dword [esp + 0x38]
add esp, 4
add eax, ecx
mov edx, dword [ebp]
mov ecx, ebp
push eax
push edi
push esi
call dword [edx + 0x28]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
add edx, 2
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
cmp edx, edi
jb 0x1002add0
jmp 0x1002ad3e
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
push edi
push esi
mov eax, dword [eax]
push ebx
mov ecx, dword [eax + ecx - 0x68]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x10]
push eax
push edi
push esi
mov ecx, dword [ecx + 4]
push ebx
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esp + 0x10]
xor edx, edx
add edi, 2
mov dword [esp + 0x1c], edi
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x18]
inc eax
cmp edi, eax
jb 0x1002ad70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret