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

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 8], eax
movzx eax, byte [esp + 0x70]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, 1
sub edi, eax
mov eax, edi
imul edi, ecx
imul eax, esi
cmp ebp, 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
jle 0x1002c23e
mov ecx, ebx
imul ecx, dword [esp + 0x58]
push 1
push ecx
call fcn.1005993f
add esp, 8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [edx], eax
mov dword [ecx], 0
lea ebp, [ebp + ebp*2 + 1]
mov ecx, 1
cmp ebp, ecx
mov dword [esp + 0x30], ebp
jle 0x1002c2b7
lea ebp, [eax + 1]
add eax, 2
mov dword [esp + 0x2c], eax
lea eax, [edx + 0xc]
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x64]
mov dword [esp + 0x5c], ebp
jmp 0x1002c284
mov ebp, dword [esp + 0x5c]
mov dword [eax - 8], ebp
mov dword [eax - 4], ebp
mov ebp, dword [esp + 0x2c]
mov dword [eax], ebp
mov ebp, dword [esp + 0x68]
mov dword [ebp + ecx*4 + 4], 0
mov dword [ebp + ecx*4], 0
mov dword [edx + eax], 0
add ecx, 3
add eax, 0xc
cmp ecx, dword [esp + 0x30]
jl 0x1002c280
xor ebp, ebp
cmp dword [esp + 0x40], ebp
jle 0x1002c4e2
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [ebp + 1]
push eax
push edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x24]
push ebx
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
push esi
push ecx
push edx
call fcn.1002bc80
add esp, 0x30
test ebp, ebp
jne 0x1002c331
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ecx
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x80]
push eax
push esi
push ecx
push edx
jmp 0x1002c3cf
mov eax, edi
sub eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
cmp edi, eax
jge 0x1002c3ac
mov ecx, dword [esp + 0x10]
sub ecx, esi
mov dword [esp + 0x64], ecx
mov esi, edi
imul esi, ebx
add esi, dword [esp + 0x24]
lea edx, [edi + 5]
add esi, dword [esp + 0x20]
lea ecx, [ebx + 0xa]
imul edx, ecx
add edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x74]
lea edx, [edx + ecx + 5]
sub eax, edi
mov dword [esp + 0x68], edx
mov edi, eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
push eax
push ecx
push esi
call fcn.100598df
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
push edx
push 0
push eax
call fcn.10059918
lea eax, [ebx + 0xa]
add dword [esp + 0x80], eax
add esp, 0x18
add esi, ebx
sub edi, 1
jne 0x1002c373
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x30]
push ecx
push esi
push edx
push eax
call fcn.1002bd10
mov eax, dword [esp + 0x60]
sub eax, ebp
lea ecx, [eax - 1]
mov edi, 1
shl edi, cl
mov ecx, eax
mov esi, 1
shl esi, cl
mov ecx, dword [esp + 0x64]
lea eax, [edi + ecx - 1]
cdq
idiv esi
lea edx, [ebp + ebp*8]
add esp, 0x20
mov ebx, eax
mov eax, dword [esp + 0x6c]
lea ecx, [eax + edx*8]
mov edx, dword [esp + 0x48]
lea eax, [edi + edx - 1]
cdq
idiv esi
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x48], ebx
mov ebp, eax
mov eax, dword [esp + 0x4c]
lea eax, [esi + eax - 1]
cdq
idiv esi
mov edx, dword [esp + 0x50]
mov dword [ecx + 0x1c], ebp
mov dword [ecx + 0x4c], ebp
mov dword [ecx + 0x20], eax
lea eax, [esi + edx - 1]
cdq
idiv esi
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x44]
lea eax, [esi + eax - 1]
cdq
idiv esi
mov edx, dword [esp + 0x48]
mov dword [ecx + 0x30], eax
lea eax, [esi + edx - 1]
cdq
idiv esi
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x4c]
lea eax, [edi + eax - 1]
cdq
idiv esi
mov edx, dword [esp + 0x50]
mov dword [esp + 0x68], eax
mov dword [ecx + 0x38], eax
lea eax, [edi + edx - 1]
cdq
idiv esi
mov edx, dword [esp + 0x68]
mov dword [ecx + 0x50], edx
mov esi, 1
mov dword [ecx + 0x3c], eax
mov dword [ecx + 0x54], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x44]
shl esi, cl
lea eax, [esi + eax - 1]
cdq
idiv esi
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
lea eax, [esi + edx - 1]
cdq
idiv esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
lea eax, [esi + eax - 1]
cdq
idiv esi
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], eax
lea eax, [esi + edx - 1]
cdq
idiv esi
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov ebp, ecx
cmp ebp, dword [esp + 0x40]
mov dword [esp + 0x18], eax
jl 0x1002c2c3
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1002c4f3
push eax
call fcn.100598cb
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, ecx
sub eax, esi
add eax, dword [esp + 0x10]
mov dword [esp + 0x78], eax
mov eax, edi
sub eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
cmp edi, eax
jge 0x1002c556
lea edx, [ebx + 0xa]
imul edx, edi
add edx, ecx
lea ebp, [ebx + ebx*4 + 0x37]
add ebp, edx
add ebp, dword [esp + 0x74]
sub eax, edi
mov dword [esp + 0x40], eax
lea esp, [esp]
mov eax, dword [esp + 0x78]
cmp ecx, eax
jge 0x1002c54a
sub eax, ecx
push eax
push 0x7f
push ebp
call fcn.10060c20
mov ecx, dword [esp + 0x30]
add esp, 0xc
lea eax, [ebx + 0xa]
add ebp, eax
sub dword [esp + 0x40], 1
jne 0x1002c530
mov eax, dword [esp + 0x6c]
imul edi, ebx
mov edx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
add edi, ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], edx
lea edx, [ecx + edi*4]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 0x14], edx
pop ebx
add esp, 0x24
ret