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

Disassembly:
sub esp, 0x64
mov dl, byte [esp + 0x70]
mov dword [esp + 4], edx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
test dl, dl
je 0x1002c988
xor eax, eax
movzx edx, dl
cmp byte [edi + 8], al
cmovne edx, eax
mov dword [esp + 0x14], edx
mov ecx, dword [edi + 0xc]
cmp ecx, 0x30
jl 0x1002cadc
cmp ecx, 0x60
jge 0x1002c9a5
lea eax, [ecx + 1]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
jmp 0x1002c9aa
mov ebx, 0x30
mov dword [esp + 0x18], ebx
xor ebp, ebp
mov al, byte [edi + 8]
lea edx, [ebx + ebp]
mov byte [esp + 0x80], al
test al, al
je 0x1002c9ce
cmp edx, ecx
mov dword [esp + 0x7c], ebp
mov ebx, ebp
cmovl ecx, edx
jmp 0x1002c9df
sub ecx, ebp
mov eax, ecx
sub eax, ebx
xor ebx, ebx
test eax, eax
cmovg ebx, eax
mov dword [esp + 0x7c], ebx
mov esi, dword [edi + 0x10]
mov ebp, edx
mov edx, dword [edi]
sub ecx, ebx
mov edi, dword [esp + 0x7c]
add ebx, esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
lea eax, [edi + edi*2]
mov dword [esp + 0x4c], ebx
lea eax, [ebx + eax*4]
mov dword [esp + 0x28], ecx
lea eax, [edx + eax*8]
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x20], eax
mov edi, 0xc
sub edi, esi
mov dword [esp + 0x54], 0xc
sub edi, dword [esp + 0x7c]
mov eax, 0xc
sub eax, ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x24], eax
mov esi, 0xc
mov eax, dword [esp + 0x14]
test al, al
mov dword [esp + 0x5c], ecx
cmovne esi, edi
mov dword [esp + 0x70], 0xb
mov edi, dword [esp + 0x10]
xor edx, edx
test al, al
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x78]
cmovne edx, ebx
cmp byte [esp + 0x80], 0
mov dword [esp + 0x50], edx
lea eax, [edx + edx*2]
mov edx, dword [edi + 4]
lea eax, [ebx + eax*4]
mov dword [esp + 0x64], edx
mov ebx, dword [esp + 0x7c]
lea eax, [esi + eax*8]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x48], eax
lea eax, [edx + ebx*8]
mov dword [esp + 0x58], eax
sete al
movzx eax, al
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x48], esi
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x70], ebx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.1002cbd0
mov ecx, dword [edi + 0xc]
add esp, 0x10
mov ebx, dword [esp + 0x18]
cmp ebp, ecx
jl 0x1002c9b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0xc
xor ebp, ebp
test ecx, ecx
jle 0x1002cbba
cmp byte [edi + 8], 0
je 0x1002caf0
mov ecx, ebp
jmp 0x1002caf3
sub ecx, ebp
dec ecx
mov eax, dword [edi + 0x10]
mov ebx, 0xc
sub ebx, eax
mov dword [esp + 0x34], ecx
sub ebx, ecx
mov dword [esp + 0x38], 0xc
test dl, dl
mov dword [esp + 0x40], ebx
mov edx, dword [esp + 0x10]
lea esi, [eax + 1]
mov edi, 0xc
mov dword [esp + 0x54], 0xc
cmovne edi, ebx
lea eax, [ecx + ecx*2]
add esi, ecx
mov dword [esp + 0x80], edi
mov edx, dword [edx]
push dword [esp + 0x7c]
mov dword [esp + 0x34], esi
lea eax, [esi + eax*4]
mov dword [esp + 0x30], edx
lea eax, [edx + eax*8]
mov edx, 0xc
mov dword [esp + 0x24], eax
sub edx, ebx
mov eax, 0xc
mov dword [esp + 0x50], edx
sub eax, esi
mov esi, 0xc
sub esi, edi
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x54], esi
lea eax, [esi + esi*2]
lea eax, [edx + eax*4]
lea eax, [edi + eax*8]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 4]
lea eax, [eax + ecx*8]
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x48]
call fcn.1002ba90
mov ecx, dword [edi + 0xc]
inc ebp
mov edx, dword [esp + 0x14]
cmp ebp, ecx
jl 0x1002cae6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0xc