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

Disassembly:
sub esp, 0x13c
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x14c]
push ebx
push ebp
mov ebp, dword [esp + 0x150]
xor ebx, ebx
push esi
mov dword [esp + 0x38], eax
mov esi, ebx
mov eax, dword [esp + 0x164]
push edi
mov edi, dword [esp + 0x150]
mov dword [esp + 0x28], eax
or eax, 0xffffffff
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
call fcn.10037d30
push dword [esp + 0x164]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x164]
push eax
push ebp
push dword [esp + 0x160]
mov dword [esp + 0x44], ebx
push edi
call fcn.100c30e4
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100c1ed5
push dword [esp + 0x24]
call fcn.10116700
movzx eax, ax
cmp eax, 0x106
je 0x100c1a28
cmp eax, 0x1002
jne 0x100c1ed5
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x58], eax
pop eax
push 3
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
push eax
push ebp
push 0x10002410
push 0
push dword [esp + 0x168]
push edi
call fcn.1003b760
test eax, eax
jns 0x100c1a61
or dword [esp + 0x14], 0xffffffff
jmp 0x100c1eec
push 1
push edi
call fcn.100961db
test eax, eax
js 0x100c1ed5
lea eax, [esp + 0x20]
mov dword [esp + 0x34], 1
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 2
push eax
push 0x100026b0
push dword [esp + 0x20]
push edi
call fcn.10027ff0
test eax, eax
js 0x100c1ed5
cmp word [esp + 0x1c], 5
je 0x100c1ac0
cmp word [esp + 0x1c], 6
je 0x100c1ac0
push 4
pop eax
cmp word [esp + 0x1c], ax
jne 0x100c1ed5
push 0x44
pop ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x6c]
push eax
push 0x100026ec
push dword [esp + 0x20]
push edi
call fcn.10027ff0
test eax, eax
js 0x100c1ed5
cmp dword [esp + 0x20], ebp
jb 0x100c1ed5
cmp dword [esp + 0x68], 0xffffffff
jne 0x100c1ed5
cmp dword [esp + 0x6c], 0x17e67896
jne 0x100c1ed5
cmp byte [esp + 0x72], 0
jne 0x100c1ed5
push edi
call fcn.1010646d
cmp byte [esp + 0x73], al
jne 0x100c1ed5
push dword [esp + 0x24]
call fcn.10116700
cmp word [esp + 0x70], ax
jne 0x100c1ed5
mov eax, dword [esp + 0x160]
test eax, 0x2000
je 0x100c1b5a
cmp dword [esp + 0x74], esi
je 0x100c1b5a
and eax, 0xffffffef
xor ebx, ebx
mov dword [esp + 0x160], eax
cmp ebx, 2
ja 0x100c1ed5
add ebx, ebx
mov eax, dword [esp + ebx*8 + 0x78]
mov ebp, dword [esp + ebx*8 + 0x7c]
mov dword [esp + 0x30], eax
test eax, eax
je 0x100c1ed5
push 0
push 0x18
lea eax, [esp + 0xb4]
push eax
push 0x100026ec
push dword [esp + 0x24]
push edi
call fcn.1003c480
test eax, eax
js 0x100c1ed5
lea eax, [esp + 0x18]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.100c9f00
test eax, eax
js 0x100c1ed5
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
push eax
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x60], 0x10
push eax
mov eax, dword [esp + 0x24]
push ebp
add eax, 0x18
mov dword [esp + 0x70], 1
push eax
push dword [esp + 0xc4]
push dword [esp + 0x2c]
push edi
call fcn.1003cb60
test eax, eax
js 0x100c1ed5
push 1
push 0
push edi
call fcn.1009623a
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + ebx*8 + 0x84]
and dword [esp + 0x34], esi
push 0x180000
mov ebp, dword [eax + 0x18]
lea eax, [esp + 0x14]
push eax
lea eax, [ebp + 0x18]
push eax
push ebx
call fcn.100ca0f1
test eax, eax
js 0x100c1ed5
cmp dword [esp + 0x10], ebx
jne 0x100c1ec8
lea eax, [esp + 0x38]
push eax
push 0
push ebp
push dword [esp + 0x1c]
call fcn.100c9f55
test eax, eax
js 0x100c1ed5
push dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add eax, 0x18
push eax
push ebp
push dword [esp + 0x44]
call fcn.10091922
push dword [esp + 0x18]
call fcn.100ca159
push dword [esp + 0x14]
and dword [esp + 0x1c], esi
push edi
call fcn.1003bdc0
mov esi, dword [esp + 0x10]
or dword [esp + 0x14], 0xffffffff
add esi, 0x18
mov ebx, dword [esp + 0x154]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], esi
and dword [esi + 0x60], 0
test byte [esi + 4], 2
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], eax
je 0x100c1cb2
xor edx, edx
jmp 0x100c1cc2
mov eax, dword [esi + 0x48]
push 1
pop edx
push 0
test byte [eax + 0x2c], 4
pop eax
cmove edx, eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x24], edx
test al, 4
jne 0x100c1cde
cmp dword [esi + 0x8c], 3
je 0x100c1cde
xor ecx, ecx
jmp 0x100c1ce1
xor ecx, ecx
inc ecx
test al, 1
je 0x100c1cf3
cmp dword [esi + 0x8c], 3
je 0x100c1cf3
xor eax, eax
inc eax
jmp 0x100c1cf5
xor eax, eax
push ecx
push eax
push edx
push ebx
push dword [esp + 0x20]
call fcn.100c3099
mov edx, dword [esi + 0x40]
jmp 0x100c1d1d
mov eax, dword [edx]
cmp eax, 8
je 0x100c1d1a
mov ecx, dword [edx + 4]
mov eax, dword [eax*4 + 0x1000c6a8]
mov dword [ecx], eax
mov edx, dword [edx + 8]
test edx, edx
jne 0x100c1d07
push edx
push dword [esp + 0x14]
call fcn.100c1768
test eax, eax
js 0x100c1ed5
imul ebp, dword [esi + 0x58], 0x118
mov ecx, dword [esi + 0x50]
add ebp, ecx
mov dword [esp + 0x40], ebp
cmp ecx, ebp
jae 0x100c1d69
or edx, 0xffffffff
cmp dword [ecx + 0xb8], 0
mov eax, ebx
mov dword [ecx + 0x28], edx
cmovne eax, edx
mov dword [ecx + 0xac], eax
add ecx, 0x118
cmp ecx, ebp
jb 0x100c1d4a
test byte [esi + 4], 2
mov edx, dword [esi + 0x104]
mov eax, dword [esi + 0x108]
lea ebx, [edx + eax*4]
mov dword [esp + 0x38], ebx
je 0x100c1d87
mov eax, dword [esi + 0x4c]
jmp 0x100c1d8a
mov eax, dword [esi + 0x48]
push 0
push dword [eax + 0x3c]
push dword [esp + 0x18]
call fcn.100c35cb
and dword [esp + 0x30], 0
sub ebx, edx
add ebx, 3
xor eax, eax
shr ebx, 2
cmp edx, dword [esp + 0x38]
cmova ebx, eax
test ebx, ebx
je 0x100c1dd8
mov edi, dword [esp + 0x30]
push 4
pop ebp
push 0
push dword [edx]
push dword [esp + 0x18]
call fcn.100c35cb
add edx, ebp
inc edi
cmp edi, ebx
jb 0x100c1db9
mov edi, dword [esp + 0x150]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esi + 0x50]
jmp 0x100c1dff
mov eax, dword [ebx]
lea ecx, [esp + 0x40]
push 0
push 0
push ecx
push ebx
push edi
call dword [eax*4 + 0x1000a7a0]
test eax, eax
js 0x100c1ec8
add ebx, 0x118
cmp ebx, ebp
jb 0x100c1ddd
or ebp, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x100c1e5a
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x4ac]
test eax, eax
jle 0x100c1e5a
mov ecx, dword [ecx + 0x4a8]
mov edx, dword [ecx]
lea ebx, [ecx + eax*4]
cmp ecx, ebx
jae 0x100c1e5a
mov edi, dword [esp + 0x154]
push 4
pop esi
cmp dword [edx + 0xb8], 0
mov eax, edi
cmovne eax, ebp
add ecx, esi
mov dword [edx + 0xac], eax
cmp ecx, ebx
jae 0x100c1e4f
mov edx, dword [ecx]
jmp 0x100c1e33
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x150]
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 0x24]
test eax, eax
jne 0x100c1e97
push 0
lea eax, [esp + 0xc8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
push 0x80
lea eax, [esp + 0xd0]
push eax
push 0
push ebp
push edi
call fcn.10034050
test eax, eax
js 0x100c1ec8
mov ecx, dword [esp + 0x2c]
jmp 0x100c1ea4
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
mov dword [ebx + 4], ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [ebx]
call fcn.101175c0
mov eax, dword [esp + 0x48]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esi + 0x78]
jmp 0x100c1f2c
or dword [esi + 4], 0x40
push dword [esp + 0x10]
call fcn.100c5740
or ebx, 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x100c1eec
push dword [esp + 0x14]
push edi
call fcn.1003bdc0
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x10], 0
je 0x100c1efc
push dword [esp + 0x10]
call fcn.100ca159
cmp dword [esp + 0x18], 0
je 0x100c1f0c
push dword [esp + 0x18]
call fcn.100ca159
cmp dword [esp + 0x34], 1
jne 0x100c1f1d
push 1
push 0
push edi
call fcn.1009623a
push edi
call fcn.10037140
mov eax, dword [esp + 0x3c]
and dword [eax], 0
xor eax, eax
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011720d
add esp, 0x13c
ret 0x1c