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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
cmp byte [esp + 0x6c], 0
je 0x100cf33e
mov ebp, ecx
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x100cf33e
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x100cf33e
cmp byte [ebp + 0x98], 0
je 0x100cf33e
mov edi, dword [ebp + 0x40]
cmp edi, dword [esp + 0x70]
jl 0x100cf33e
mov edx, dword [ebp + 0x44]
cmp edx, dword [esp + 0x74]
jl 0x100cf33e
mov ebx, ecx
add ebx, dword [esp + 0x70]
js 0x100cf33e
mov eax, esi
add eax, dword [esp + 0x74]
mov dword [esp], eax
js 0x100cf33e
mov dword [esp + 8], edx
mov edx, dword [esp + 0x70]
mov eax, 0
test edx, edx
cmovs edx, eax
cmovs ecx, ebx
mov eax, edi
lea ebx, [ecx + edx]
sub eax, edx
mov dword [esp + 0x20], edx
cmp ebx, edi
cmovle eax, ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x24], eax
mov eax, 0
test ecx, ecx
mov edx, ecx
cmovs edx, eax
cmovs esi, dword [esp]
mov eax, dword [esp + 8]
mov dword [esp + 0x18], edx
mov edi, eax
lea ecx, [esi + edx]
sub edi, edx
cmp ecx, eax
mov ecx, ebp
cmovle edi, esi
xor eax, eax
mov dword [esp + 0x14], edi
push eax
push eax
push eax
mov eax, 0
mov dword [esp + 0x28], 0
push eax
call fcn.100ccc3e
mov dword [esp + 0x10], eax
movzx eax, word [ebp + 0x82]
test ax, ax
jle 0x100cf32c
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + 0x68]
mov dword [esp + 0x50], ebp
lea ecx, [ecx + edi]
lea ebx, [edi + edi]
mov dword [esp + 0xc], ecx
mov cl, byte [esp + 0x6c]
mov dword [esp + 0x4c], ebx
and ebx, 0xfffffffc
and dl, cl
movzx ecx, dl
mov byte [esp], dl
mov esi, ecx
mov edx, ecx
shl esi, 8
shl edx, 0x10
or esi, ecx
shl ecx, 0x18
or edx, esi
mov esi, edi
lea edi, [edi + edi + 2]
or ecx, edx
and esi, 1
and edi, 0xfffffffc
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xc]
or ebx, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], ebx
lea edx, [ecx + ecx]
mov ecx, edx
or edx, 2
and ecx, 0xfffffffc
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
mov esi, ecx
mov dword [esp + 0x2c], ecx
mov ecx, edi
mov cl, byte [esp + 0x6c]
sub esi, edi
mov dword [esp + 0x38], esi
not cl
mov byte [esp + 7], cl
mov ecx, ebx
mov ecx, dword [esp + 0x18]
or ebx, 2
mov dword [esp + 0x28], ebx
lea ebx, [edx + ecx]
mov dword [esp + 0x48], ebx
cmp dword [esp + 0x14], 0
mov edi, dword [esp + 0x18]
mov cl, byte [esp]
jle 0x100cf30a
mov eax, edi
mov dword [esp + 8], edi
and eax, 0xfffffffe
imul eax, dword [ebp + 0x8c]
add eax, dword [esp + 0x10]
and edi, 1
lea esi, [eax + edi*2]
jne 0x100cf2af
cmp byte [esp + 0x6c], 0xff
jne 0x100cf2af
mov eax, dword [esp + 8]
lea edi, [eax + 1]
cmp edi, ebx
jge 0x100cf2af
cmp dword [esp + 0x40], 0
je 0x100cf27d
mov eax, dword [esp + 0x34]
mov byte [esi + eax], cl
mov eax, dword [esp + 0x28]
mov byte [esi + eax], cl
mov eax, dword [esp + 0x3c]
lea eax, [esi + eax]
push dword [esp + 0x38]
push dword [esp + 0x48]
push eax
call fcn.100cebac
add esp, 0xc
test byte [esp + 0xc], 1
je 0x100cf2f1
mov cl, byte [esp]
mov eax, dword [esp + 0x2c]
mov byte [esi + eax], cl
mov eax, dword [esp + 0x30]
mov byte [esi + eax], cl
jmp 0x100cf2fa
cmp dword [esp + 0x24], 0
jle 0x100cf2f6
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0xc]
mov ch, byte [esp + 7]
mov edi, eax
mov edx, ebp
inc ebp
add eax, 2
and edi, 0xfffffffc
and edx, 1
or edx, edi
mov cl, byte [esi + edx]
and cl, ch
or cl, byte [esp]
cmp ebp, ebx
mov byte [esi + edx], cl
jl 0x100cf2c6
mov edi, dword [esp + 8]
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
mov cl, byte [esp]
jmp 0x100cf2fa
mov edi, dword [esp + 8]
inc edi
cmp edi, ebx
jl 0x100cf23a
movzx eax, word [ebp + 0x82]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
movsx esi, ax
add ecx, dword [ebp + 0x94]
inc edx
cmp edx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
jl 0x100cf228
mov dword [ebp + 0x9c], 0
mov ecx, dword [ebp + 4]
call fcn.10160160
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret 0x18