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

Disassembly:
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
push edi
cmp ebx, 0xa
jb 0x100cfadd
mov edx, dword [esp + 0x94]
mov ebp, dword [esp + 0x90]
mov ecx, dword [esp + 0xa0]
lea eax, [edx + ebp]
mov dword [esp + 0x38], eax
lea edi, [ecx + 4]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x10], edi
movzx esi, word [eax]
mov dword [esp + 0x3c], esi
movzx esi, word [eax + 2]
mov dword [esp + 0x1c], esi
movzx esi, word [eax + 4]
mov dword [esp + 0x24], esi
mov esi, ebx
movzx ebx, word [eax]
add eax, 6
sub esi, dword [esp + 0x24]
sub esi, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
sub esi, ebx
add ebx, eax
sub esi, 6
mov eax, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], eax
lea eax, [edx + 3]
shr eax, 2
lea edx, [eax + ebp]
lea ebx, [edx + eax]
mov dword [esp + 0x48], edx
add eax, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], ebx
mov ebx, eax
mov eax, dword [ecx]
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
cmp esi, dword [esp + 0x9c]
ja 0x100cfadd
push dword [esp + 0x3c]
lea eax, [esp + 0x80]
push dword [esp + 0x44]
push eax
call fcn.100ce6f0
cmp eax, 0xffffff88
ja 0x100cfae2
push dword [esp + 0x1c]
lea eax, [esp + 0x70]
push dword [esp + 0x48]
push eax
call fcn.100ce6f0
cmp eax, 0xffffff88
ja 0x100cfae2
push dword [esp + 0x24]
lea eax, [esp + 0x60]
push dword [esp + 0x2c]
push eax
call fcn.100ce6f0
cmp eax, 0xffffff88
ja 0x100cfae2
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x28]
push esi
push eax
lea eax, [esp + 0x54]
push eax
call fcn.100ce6f0
cmp eax, 0xffffff88
ja 0x100cfae2
lea eax, [esp + 0x4c]
push eax
call fcn.100c6910
mov esi, eax
lea eax, [esp + 0x5c]
push eax
call fcn.100c6910
or esi, eax
lea eax, [esp + 0x6c]
push eax
call fcn.100c6910
or esi, eax
lea eax, [esp + 0x7c]
push eax
call fcn.100c6910
or esi, eax
jne 0x100cfa1e
mov eax, dword [esp + 0x38]
add eax, 0xfffffff9
mov dword [esp + 0x40], eax
cmp ebx, eax
jae 0x100cfa17
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x80]
neg ebp
mov eax, dword [esp + 0x7c]
and ecx, 0x1f
shl eax, cl
and ebp, 0x1f
mov esi, dword [esp + 0x90]
mov ecx, ebp
shr eax, cl
lea ecx, [edi + eax*4]
mov edx, dword [esp + 0x20]
movzx eax, word [ecx]
mov word [esi], ax
movzx eax, byte [ecx + 3]
movzx ebx, byte [ecx + 2]
add esi, eax
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
and ecx, 0x1f
shl eax, cl
mov ecx, ebp
shr eax, cl
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
lea ecx, [edi + eax*4]
add ebx, dword [esp + 0x80]
movzx eax, word [ecx]
mov word [esi], ax
movzx eax, byte [ecx + 3]
movzx edi, byte [ecx + 2]
add esi, eax
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
and ecx, 0x1f
shl eax, cl
mov ecx, ebp
mov ebp, dword [esp + 0x18]
shr eax, cl
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + eax*4]
add edi, dword [esp + 0x70]
movzx eax, word [ecx]
mov word [ebp], ax
movzx eax, byte [ecx + 3]
add ebp, eax
mov dword [esp + 0x14], esi
movzx esi, byte [ecx + 2]
mov ecx, dword [esp + 0x50]
and ecx, 0x1f
add esi, dword [esp + 0x60]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x4c]
mov eax, ebp
shl eax, cl
mov ecx, dword [esp + 0x1c]
shr eax, cl
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + eax*4]
movzx eax, word [ecx]
mov word [edx], ax
movzx eax, byte [ecx + 2]
mov edx, dword [esp + 0x50]
add edx, eax
movzx eax, byte [ecx + 3]
add dword [esp + 0x20], eax
mov ecx, ebx
mov eax, dword [esp + 0x7c]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x1c]
shr eax, cl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x44], eax
movzx eax, word [ecx + eax*4]
mov ecx, dword [esp + 0x90]
mov word [ecx], ax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + ecx*4 + 2]
add eax, ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + ecx*4 + 3]
mov ecx, edi
add dword [esp + 0x90], eax
and ecx, 0x1f
shl ebx, cl
mov ecx, dword [esp + 0x1c]
shr ebx, cl
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx + ebx*4]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx + ebx*4 + 2]
add eax, edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x70], eax
movzx eax, byte [ecx + ebx*4 + 3]
mov ecx, esi
add dword [esp + 0x14], eax
and ecx, 0x1f
mov ebx, dword [esp + 0x5c]
shl ebx, cl
mov ecx, dword [esp + 0x1c]
shr ebx, cl
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx + ebx*4]
mov word [edi], ax
movzx eax, byte [ecx + ebx*4 + 2]
mov edi, dword [esp + 0x10]
add eax, esi
mov dword [esp + 0x60], eax
movzx eax, byte [ecx + ebx*4 + 3]
mov ecx, edx
add dword [esp + 0x18], eax
and ecx, 0x1f
mov ebx, dword [esp + 0x20]
shl ebp, cl
mov ecx, dword [esp + 0x1c]
shr ebp, cl
movzx eax, word [edi + ebp*4]
mov word [ebx], ax
movzx eax, byte [edi + ebp*4 + 2]
add eax, edx
mov dword [esp + 0x50], eax
movzx eax, byte [edi + ebp*4 + 3]
add ebx, eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x24], ebx
call fcn.100c6910
mov esi, eax
lea eax, [esp + 0x5c]
push eax
call fcn.100c6910
or esi, eax
lea eax, [esp + 0x6c]
push eax
call fcn.100c6910
or esi, eax
lea eax, [esp + 0x7c]
push eax
call fcn.100c6910
or esi, eax
mov eax, dword [esp + 0x40]
je 0x100cf804
mov ebp, dword [esp + 0x90]
mov eax, dword [esp + 0x48]
cmp ebp, eax
ja 0x100cfadd
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x14], ecx
ja 0x100cfadd
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x18], ecx
ja 0x100cfadd
mov esi, dword [esp + 0x2c]
push esi
push edi
push eax
lea eax, [esp + 0x88]
push eax
push ebp
call fcn.100c78e0
push esi
push edi
push dword [esp + 0x38]
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x24]
call fcn.100c78e0
push esi
push edi
push dword [esp + 0x3c]
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x28]
call fcn.100c78e0
push esi
push edi
push dword [esp + 0x40]
lea eax, [esp + 0x58]
push eax
push ebx
call fcn.100c78e0
lea eax, [esp + 0x4c]
push eax
call fcn.100bcbb0
mov edx, eax
lea eax, [esp + 0x5c]
push eax
call fcn.100bcbb0
and edx, eax
lea eax, [esp + 0x6c]
push eax
call fcn.100bcbb0
and edx, eax
lea eax, [esp + 0x7c]
push eax
call fcn.100bcbb0
pop edi
pop esi
test eax, edx
mov ecx, 0xffffffec
mov eax, dword [esp + 0x8c]
pop ebp
cmove eax, ecx
pop ebx
add esp, 0x7c
ret 0x14
mov eax, 0xffffffec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x14