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

Disassembly:
sub esp, 0x40
imul eax, dword [esp + 0x5c], 0x6c
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
mov ebx, ecx
push esi
mov dword [esp + 0x34], eax
xor esi, esi
mov dword [esp + 0x20], edx
mov ebp, dword [ebp]
add eax, ebp
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x68]
mov eax, edi
cdq
sub eax, edx
mov dword [esp + 0x3c], ebp
sar eax, 1
mov edx, 1
mov ecx, eax
mov dword [esp + 0x18], esi
shl edx, cl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], edx
xor edx, edx
mov eax, dword [ecx + 0x14]
dec eax
div dword [esp + 0x28]
mov edx, dword [ecx + 0x58]
inc eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], eax
test edx, edx
js 0x1002bfae
mov edi, dword [ecx + 0x28]
mov ecx, edi
mov edx, dword [esp + 0x28]
shr edx, cl
imul eax, edx
push edx
push eax
mov eax, dword [esp + 0x70]
push esi
mov esi, 1
lea eax, [eax + 1]
cdq
sub eax, edx
imul edx, dword [esp + 0x40], 0x6c
sar eax, 1
mov ecx, eax
shl esi, cl
mov ecx, edi
shr esi, cl
mov ecx, ebx
imul esi, dword [esp + 0x7c]
mov edx, dword [edx + ebp + 4]
push esi
call fcn.100214b0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ebp, dword [esp + 0x70]
cmp dword [esp + 0x6c], esi
jle 0x1002c10e
lea eax, [edi + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
mov ecx, dword [esp + 0x10]
mov esi, edx
imul esi, ebp
mov dword [esp + 0x30], edx
xor edx, edx
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x4c]
mov eax, dword [eax + esi*4]
div dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, dword [ecx + esi*4]
mov esi, dword [esp + 0x28]
dec eax
div esi
inc eax
cmp byte [esp + 0x74], 0
mov dword [esp + 0x14], eax
je 0x1002c0a1
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
test esi, esi
je 0x1002c10a
jmp 0x1002c020
cmp dword [0x100983a4], 0
jne 0x1002c062
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x80]
mov esi, dword [ebx]
mov eax, dword [eax + 0x18]
dec eax
div dword [esp + 0x34]
mov edx, edi
inc eax
push eax
push ecx
push ebp
push ecx
mov ecx, ebx
call fcn.10036260
add esp, 0x14
mov ecx, ebx
push eax
push dword [esp + 0x30]
push ebp
push edi
call dword [esi]
mov esi, dword [esp + 0x18]
jmp 0x1002c092
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
push dword [esp + 0x2c]
mov eax, dword [eax]
push ebp
push edi
mov ecx, dword [eax + ecx - 0x68]
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push eax
push dword [esp + 0x30]
mov ecx, dword [ecx + edx + 4]
push ebp
push edi
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x2c], ecx
cmp ecx, esi
jb 0x1002c020
jmp 0x1002c10a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov ecx, dword [edx + 0x28]
mov edx, dword [edx - 0x68]
shr eax, cl
imul eax, ebp
shr esi, cl
mov ecx, ebx
push esi
mov dword [esp + 0x34], eax
mov eax, esi
imul eax, dword [esp + 0x1c]
push eax
push 0
push dword [esp + 0x3c]
call fcn.100214b0
mov eax, dword [esp + 0x20]
xor edx, edx
push esi
mov ecx, ebx
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x3c]
inc eax
imul eax, esi
imul esi, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x6c]
push esi
push dword [esp + 0x4c]
mov edx, dword [eax]
mov eax, dword [esp + 0x58]
mov edx, dword [edx + eax - 0x68]
call fcn.100214b0
mov esi, dword [esp + 0x38]
add esp, 0x20
mov ecx, dword [esp + 0x10]
cmp ebp, 1
jbe 0x1002c4b7
lea eax, [edi + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
shl edx, cl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], edx
xor edx, edx
mov eax, dword [ecx + 0x18]
dec eax
div dword [esp + 0x34]
cmp ebp, eax
mov eax, dword [esp + 0x14]
jae 0x1002c4bb
cmp byte [esp + 0x78], 0
jne 0x1002c4bb
test esi, esi
jne 0x1002c4bb
cmp eax, 3
jbe 0x1002c4bb
xor eax, eax
mov dword [esp + 0x30], eax
cmp byte [esp + 0x74], 0
je 0x1002c1ac
cmp dword [0x100983a4], 0
jne 0x1002c1ac
mov eax, dword [ecx + 0x18]
xor edx, edx
dec eax
mov esi, dword [ebx]
div dword [esp + 0x34]
push dword [esp + 0x80]
inc eax
mov edx, edi
push eax
push dword [esp + 0x38]
push ebp
push ecx
mov ecx, ebx
call fcn.10036260
add esp, 0x14
mov ecx, ebx
push eax
push dword [esp + 0x34]
push ebp
call dword [esi + 0x28]
jmp 0x1002c203
push dword [esp + 0x7c]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x64]
push eax
push ebp
push edi
push 0x100983a8
push ebx
push ecx
mov ecx, dword [esp + 0x88]
call fcn.10036930
mov ecx, dword [esp + 0x40]
add esp, 0x24
mov esi, eax
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x24]
sub ecx, esi
push ecx
push dword [esp + 0x6c]
mov ecx, dword [esp + 0x30]
call fcn.1001fc20
mov edx, dword [ebx]
add eax, esi
push eax
push dword [esp + 0x34]
mov ecx, ebx
push ebp
call dword [edx + 0x28]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x30], eax
cmp eax, 2
jb 0x1002c168
mov eax, dword [esp + 0x14]
mov ecx, 2
mov dword [esp + 0x2c], ecx
lea esi, [eax - 2]
mov dword [esp + 0x30], esi
cmp esi, ecx
jbe 0x1002c325
cmp byte [esp + 0x74], 0
je 0x1002c281
cmp dword [0x100983a4], 0
jne 0x1002c281
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x80]
mov esi, dword [ebx]
mov eax, dword [eax + 0x18]
dec eax
div dword [esp + 0x38]
mov edx, edi
inc eax
push eax
push ecx
push ebp
push ecx
mov ecx, ebx
call fcn.10036260
add esp, 0x14
mov ecx, ebx
push eax
push dword [esp + 0x30]
push ebp
call dword [esi + 0x28]
mov esi, dword [esp + 0x30]
jmp 0x1002c310
push dword [esp + 0x7c]
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
push ebp
push edi
push ecx
mov ecx, dword [esp + 0x80]
push ebx
push dword [esp + 0x30]
call fcn.10036c70
mov ecx, dword [esp + 0x40]
mov edx, eax
mov eax, dword [esp + 0x44]
sub ecx, edx
sub eax, edx
mov dword [esp + 0x64], edx
add esp, 0x24
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], eax
cmp eax, ecx
je 0x1002c2ff
push dword [esp + 0x64]
mov ecx, dword [esp + 0x28]
call fcn.10020da0
mov edx, dword [esp + 0x24]
push dword [esp + 0x3c]
mov dword [esp + 0x50], eax
lea ecx, [edx + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
call fcn.100358f0
add esp, 4
add eax, dword [esp + 0x40]
mov ecx, ebx
mov edx, dword [ebx]
push eax
push dword [esp + 0x30]
push ebp
call dword [edx + 0x28]
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x2c], ecx
cmp ecx, esi
jb 0x1002c235
mov eax, dword [esp + 0x14]
cmp esi, eax
jae 0x1002c41b
lea ecx, [ecx]
cmp byte [esp + 0x74], 0
je 0x1002c37f
cmp dword [0x100983a4], 0
jne 0x1002c37f
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x80]
mov esi, dword [ebx]
mov eax, dword [eax + 0x18]
dec eax
div dword [esp + 0x38]
mov edx, edi
inc eax
push eax
push dword [esp + 0x38]
push ebp
push ecx
mov ecx, ebx
call fcn.10036260
add esp, 0x14
mov ecx, ebx
push eax
push dword [esp + 0x34]
push ebp
call dword [esi + 0x28]
mov esi, dword [esp + 0x30]
jmp 0x1002c40c
push dword [esp + 0x7c]
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x68]
push eax
lea eax, [esp + 0x28]
push eax
push esi
push ebp
push edi
push 0x100983a8
push ebx
push dword [esp + 0x30]
call fcn.10036930
mov ecx, dword [esp + 0x40]
mov edx, eax
mov eax, dword [esp + 0x44]
sub ecx, edx
sub eax, edx
mov dword [esp + 0x54], edx
add esp, 0x24
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
cmp eax, ecx
je 0x1002c3fe
push dword [esp + 0x64]
mov ecx, dword [esp + 0x28]
call fcn.10020da0
mov edx, dword [esp + 0x24]
push dword [esp + 0x40]
mov dword [esp + 0x50], eax
lea ecx, [edx + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
call fcn.100358f0
add esp, 4
add eax, dword [esp + 0x30]
mov ecx, ebx
mov edx, dword [ebx]
push eax
push esi
push ebp
call dword [edx + 0x28]
inc esi
mov dword [esp + 0x30], esi
cmp esi, dword [esp + 0x14]
jb 0x1002c330
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x6c], 0
jle 0x1002c674
cmp byte [esp + 0x74], 0
je 0x1002c674
mov eax, dword [ecx + 0x14]
xor edx, edx
dec eax
mov esi, dword [esp + 0x14]
div dword [esp + 0x28]
inc eax
cmp esi, eax
jae 0x1002c674
lea eax, [edi + 1]
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov dword [esp + 0x6c], edx
lea ebx, [ebx]
cmp dword [0x100983a4], 0
jne 0x1002c62f
mov eax, dword [ecx + 0x18]
mov esi, 1
mov ecx, edx
mov edi, dword [ebx]
shl esi, cl
xor edx, edx
push dword [esp + 0x80]
lea eax, [eax - 1]
div esi
mov esi, dword [esp + 0x6c]
mov edx, esi
inc eax
push eax
push dword [esp + 0x1c]
push ebp
push ecx
mov ecx, ebx
call fcn.10036260
add esp, 0x14
mov ecx, ebx
push eax
push dword [esp + 0x18]
push ebp
push esi
call dword [edi]
mov edi, esi
mov esi, dword [esp + 0x14]
jmp 0x1002c654
mov eax, dword [esp + 0x14]
cmp esi, eax
jae 0x1002c41f
lea eax, [edi + 1]
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov dword [esp + 0x30], edx
cmp byte [esp + 0x74], 0
je 0x1002c526
cmp dword [0x100983a4], 0
jne 0x1002c526
mov eax, dword [ecx + 0x18]
mov esi, 1
mov ecx, edx
mov edi, dword [ebx]
dec eax
shl esi, cl
xor edx, edx
div esi
push dword [esp + 0x80]
mov edx, dword [esp + 0x6c]
inc eax
push eax
push dword [esp + 0x20]
push ebp
push ecx
mov ecx, ebx
call fcn.10036260
mov esi, dword [esp + 0x2c]
add esp, 0x14
mov ecx, ebx
push eax
push esi
push ebp
call dword [edi + 0x28]
mov edi, dword [esp + 0x68]
jmp 0x1002c613
cmp byte [esp + 0x78], 0
je 0x1002c56f
mov ecx, dword [ecx + 0x10]
push esi
push ebp
push edi
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jle 0x1002c56b
mov eax, dword [esp + 0x10]
push esi
push ebp
push edi
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x6c]
sub ecx, eax
mov eax, dword [esp + 0x54]
imul ecx, ecx, 0x6c
push esi
push ebp
mov eax, dword [eax]
push edi
mov ecx, dword [ecx + eax + 4]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x1002c609
mov ecx, dword [esp + 0x10]
push dword [esp + 0x7c]
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push esi
push ebp
push edi
push 0x100983a8
push ebx
push ecx
mov ecx, dword [esp + 0x88]
call fcn.10036930
mov edx, dword [esp + 0x40]
mov ecx, eax
mov eax, dword [esp + 0x44]
add esp, 0x24
cmp byte [esp + 0x78], 0
mov dword [esp + 0x34], ecx
je 0x1002c5bd
cmp ecx, edx
jg 0x1002c5b7
cmp ecx, eax
jge 0x1002c5bd
mov ecx, eax
mov dword [esp + 0x34], eax
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], eax
cmp eax, edx
je 0x1002c607
push dword [esp + 0x64]
mov ecx, dword [esp + 0x28]
call fcn.10020da0
mov edx, dword [esp + 0x24]
push dword [esp + 0x40]
mov dword [esp + 0x50], eax
lea ecx, [edx + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
call fcn.100358f0
mov ecx, dword [esp + 0x38]
add esp, 4
add eax, ecx
mov edx, dword [ebx]
mov ecx, ebx
push eax
push esi
push ebp
call dword [edx + 0x28]
mov ecx, dword [esp + 0x10]
inc esi
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x14]
jb 0x1002c4d1
jmp 0x1002c41f
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
push esi
push ebp
mov eax, dword [eax]
push edi
mov ecx, dword [eax + ecx - 0x68]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x10]
push eax
push esi
push ebp
mov ecx, dword [ecx + 4]
push edi
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [esp + 0x10]
xor edx, edx
inc esi
mov dword [esp + 0x14], esi
mov eax, dword [ecx + 0x14]
dec eax
div dword [esp + 0x28]
mov edx, dword [esp + 0x6c]
inc eax
cmp esi, eax
jb 0x1002c460
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret