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

Disassembly:
sub esp, 0x40
imul eax, dword [esp + 0x5c], 0x6c
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
mov dword [esp + 0x34], eax
mov ebp, ecx
mov ebx, dword [ebx]
xor esi, esi
add eax, ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x68]
mov eax, edi
cdq
sub eax, edx
mov dword [esp + 0x3c], ebx
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 0x1002b7dc
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, ebp
imul esi, dword [esp + 0x7c]
mov edx, dword [edx + ebx]
push esi
call fcn.100214b0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ebx, dword [esp + 0x70]
cmp dword [esp + 0x6c], esi
jle 0x1002b94e
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, ebx
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 0x1002b8e1
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
test esi, esi
je 0x1002b94a
lea esp, [esp]
mov edx, dword [esp + 0x5c]
push ecx
push ebx
push edi
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 8]
test eax, eax
jne 0x1002b89f
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x80]
mov esi, dword [ebp]
mov eax, dword [eax + 0x18]
dec eax
div dword [esp + 0x34]
mov edx, edi
inc eax
push eax
push dword [esp + 0x34]
push ebx
push ecx
mov ecx, ebp
call fcn.10036260
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x30]
push ebx
push edi
call dword [esi]
mov esi, dword [esp + 0x18]
jmp 0x1002b8ce
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
push dword [esp + 0x2c]
mov eax, dword [eax]
push ebx
push edi
mov ecx, dword [eax + ecx - 0x6c]
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]
push ebx
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 0x1002b850
jmp 0x1002b94a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov ecx, dword [edx + 0x28]
mov edx, dword [edx - 0x6c]
shr eax, cl
imul eax, ebx
shr esi, cl
mov ecx, ebp
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, ebp
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 - 0x6c]
call fcn.100214b0
mov esi, dword [esp + 0x38]
add esp, 0x20
mov ecx, dword [esp + 0x10]
cmp ebx, 1
jbe 0x1002bd35
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 ebx, eax
mov eax, dword [esp + 0x14]
jae 0x1002bd39
cmp byte [esp + 0x78], 0
jne 0x1002bd39
test esi, esi
jne 0x1002bd39
cmp eax, 3
jbe 0x1002bd39
mov dword [esp + 0x30], esi
jmp 0x1002b9b4
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0x74], 0
je 0x1002ba0b
mov ecx, dword [esp + 0x5c]
push esi
push ebx
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x1002ba07
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x80]
mov esi, dword [ebp]
mov eax, dword [eax + 0x18]
dec eax
div dword [esp + 0x38]
mov edx, edi
inc eax
push eax
push dword [esp + 0x38]
push ebx
push ecx
mov ecx, ebp
call fcn.10036260
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x34]
push ebx
call dword [esi + 0x28]
mov esi, dword [esp + 0x30]
jmp 0x1002ba60
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 ebx
push edi
push ecx
push ebp
push ecx
mov ecx, dword [esp + 0x88]
call fcn.100363e0
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 [ebp]
add eax, esi
mov esi, dword [esp + 0x30]
mov ecx, ebp
push eax
push esi
push ebx
call dword [edx + 0x28]
inc esi
mov dword [esp + 0x30], esi
cmp esi, 2
jb 0x1002b9b0
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 0x1002bb91
lea ebx, [ebx]
cmp byte [esp + 0x74], 0
je 0x1002baec
mov edx, dword [esp + 0x5c]
push ecx
push ebx
mov ecx, edx
mov eax, dword [edx]
call dword [eax + 0x24]
test eax, eax
jne 0x1002bae8
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x80]
mov esi, dword [ebp]
mov eax, dword [eax + 0x18]
dec eax
div dword [esp + 0x38]
mov edx, edi
inc eax
push eax
push dword [esp + 0x34]
push ebx
push ecx
mov ecx, ebp
call fcn.10036260
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x30]
push ebx
call dword [esi + 0x28]
mov esi, dword [esp + 0x30]
jmp 0x1002bb7c
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x7c]
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x80]
push ebp
push dword [esp + 0x30]
call fcn.10036710
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 0x1002bb6a
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, ebp
mov edx, dword [ebp]
push eax
push dword [esp + 0x30]
push ebx
call dword [edx + 0x28]
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x2c], ecx
cmp ecx, esi
jb 0x1002ba90
mov eax, dword [esp + 0x14]
cmp esi, eax
jae 0x1002bc92
lea esp, [esp]
cmp byte [esp + 0x74], 0
je 0x1002bbf6
mov ecx, dword [esp + 0x5c]
push esi
push ebx
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x1002bbf6
mov eax, dword [esp + 0x10]
xor edx, edx
push dword [esp + 0x80]
mov esi, dword [ebp]
mov eax, dword [eax + 0x18]
dec eax
div dword [esp + 0x38]
mov edx, edi
inc eax
push eax
push dword [esp + 0x38]
push ebx
push ecx
mov ecx, ebp
call fcn.10036260
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x34]
push ebx
call dword [esi + 0x28]
mov esi, dword [esp + 0x30]
jmp 0x1002bc83
push dword [esp + 0x7c]
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push esi
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x80]
push ebp
push dword [esp + 0x30]
call fcn.100363e0
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 0x1002bc74
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, ebp
mov edx, dword [ebp]
push eax
push esi
push ebx
call dword [edx + 0x28]
inc esi
mov dword [esp + 0x30], esi
cmp esi, dword [esp + 0x14]
jb 0x1002bba0
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x6c], 0
jle 0x1002bef6
cmp byte [esp + 0x74], 0
je 0x1002bef6
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 0x1002bef6
lea eax, [edi + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x6c], eax
nop
mov eax, dword [esp + 0x5c]
mov ecx, eax
push esi
push ebx
push edi
mov edx, dword [eax]
call dword [edx + 8]
test eax, eax
jne 0x1002beb6
mov eax, dword [esp + 0x10]
mov esi, 1
mov ecx, dword [esp + 0x6c]
xor edx, edx
shl esi, cl
push dword [esp + 0x80]
mov eax, dword [eax + 0x18]
dec eax
mov edi, dword [ebp]
div esi
mov esi, dword [esp + 0x6c]
mov edx, esi
inc eax
push eax
push dword [esp + 0x1c]
push ebx
push ecx
mov ecx, ebp
call fcn.10036260
add esp, 0x14
mov ecx, ebp
push eax
push dword [esp + 0x18]
push ebx
push esi
call dword [edi]
mov edi, esi
mov esi, dword [esp + 0x14]
jmp 0x1002beda
mov eax, dword [esp + 0x14]
cmp esi, eax
jae 0x1002bc96
lea eax, [edi + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x40], eax
lea ecx, [ecx]
cmp byte [esp + 0x74], 0
je 0x1002bdb6
mov ecx, dword [esp + 0x5c]
push esi
push ebx
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x1002bdb2
mov eax, dword [esp + 0x10]
mov esi, 1
mov ecx, dword [esp + 0x40]
xor edx, edx
shl esi, cl
push dword [esp + 0x80]
mov eax, dword [eax + 0x18]
dec eax
mov edi, dword [ebp]
div esi
mov edx, dword [esp + 0x6c]
inc eax
push eax
push dword [esp + 0x20]
push ebx
push ecx
mov ecx, ebp
call fcn.10036260
mov esi, dword [esp + 0x2c]
add esp, 0x14
mov ecx, ebp
push eax
push esi
push ebx
call dword [edi + 0x28]
mov edi, dword [esp + 0x68]
jmp 0x1002be9e
mov ecx, dword [esp + 0x10]
cmp byte [esp + 0x78], 0
je 0x1002bdfa
mov ecx, dword [ecx + 0x10]
push esi
push ebx
push edi
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jle 0x1002bdfa
mov eax, dword [esp + 0x10]
push esi
push ebx
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 ebx
mov eax, dword [eax]
push edi
mov ecx, dword [ecx + eax]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x1002be93
push dword [esp + 0x7c]
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push esi
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x80]
push ebp
push dword [esp + 0x30]
call fcn.100363e0
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 0x1002be47
cmp ecx, edx
jg 0x1002be41
cmp ecx, eax
jge 0x1002be47
mov ecx, eax
mov dword [esp + 0x34], eax
sub edx, ecx
sub eax, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], eax
cmp eax, edx
je 0x1002be91
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 + 0x34]
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 [ebp]
mov ecx, ebp
push eax
push esi
push ebx
call dword [edx + 0x28]
mov ecx, dword [esp + 0x10]
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x14]
jb 0x1002bd50
jmp 0x1002bc96
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
push esi
push ebx
mov eax, dword [eax]
push edi
mov ecx, dword [eax + ecx - 0x6c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x10]
push eax
push esi
push ebx
mov ecx, dword [ecx]
push edi
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esp + 0x10]
xor edx, edx
inc esi
mov dword [esp + 0x14], esi
mov eax, dword [eax + 0x14]
dec eax
div dword [esp + 0x28]
inc eax
cmp esi, eax
jb 0x1002bcd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret