Function at 0x100c1785
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.10037ce0
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.100c2ee4
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100c1cd5
push dword [esp + 0x24]
call fcn.10116550
movzx eax, ax
cmp eax, 0x106
je 0x100c1828
cmp eax, 0x1002
jne 0x100c1cd5
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.1003b6c0
test eax, eax
jns 0x100c1861
or dword [esp + 0x14], 0xffffffff
jmp 0x100c1cec
push 1
push edi
call fcn.10095fdb
test eax, eax
js 0x100c1cd5
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.10027fb0
test eax, eax
js 0x100c1cd5
cmp word [esp + 0x1c], 5
je 0x100c18c0
cmp word [esp + 0x1c], 6
je 0x100c18c0
push 4
pop eax
cmp word [esp + 0x1c], ax
jne 0x100c1cd5
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.10027fb0
test eax, eax
js 0x100c1cd5
cmp dword [esp + 0x20], ebp
jb 0x100c1cd5
cmp dword [esp + 0x68], 0xffffffff
jne 0x100c1cd5
cmp dword [esp + 0x6c], 0x17e67884
jne 0x100c1cd5
cmp byte [esp + 0x72], 0
jne 0x100c1cd5
push edi
call fcn.1010626a
cmp byte [esp + 0x73], al
jne 0x100c1cd5
push dword [esp + 0x24]
call fcn.10116550
cmp word [esp + 0x70], ax
jne 0x100c1cd5
mov eax, dword [esp + 0x160]
test eax, 0x2000
je 0x100c195a
cmp dword [esp + 0x74], esi
je 0x100c195a
and eax, 0xffffffef
xor ebx, ebx
mov dword [esp + 0x160], eax
cmp ebx, 2
ja 0x100c1cd5
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 0x100c1cd5
push 0
push 0x18
lea eax, [esp + 0xb4]
push eax
push 0x100026ec
push dword [esp + 0x24]
push edi
call fcn.1003c3e0
test eax, eax
js 0x100c1cd5
lea eax, [esp + 0x18]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.100c9d00
test eax, eax
js 0x100c1cd5
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.1003cac0
test eax, eax
js 0x100c1cd5
push 1
push 0
push edi
call fcn.1009603a
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.100c9ef1
test eax, eax
js 0x100c1cd5
cmp dword [esp + 0x10], ebx
jne 0x100c1cc8
lea eax, [esp + 0x38]
push eax
push 0
push ebp
push dword [esp + 0x1c]
call fcn.100c9d55
test eax, eax
js 0x100c1cd5
push dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add eax, 0x18
push eax
push ebp
push dword [esp + 0x44]
call fcn.10091722
push dword [esp + 0x18]
call fcn.100c9f59
push dword [esp + 0x14]
and dword [esp + 0x1c], esi
push edi
call fcn.1003bd20
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 0x100c1ab2
xor edx, edx
jmp 0x100c1ac2
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 0x100c1ade
cmp dword [esi + 0x8c], 3
je 0x100c1ade
xor ecx, ecx
jmp 0x100c1ae1
xor ecx, ecx
inc ecx
test al, 1
je 0x100c1af3
cmp dword [esi + 0x8c], 3
je 0x100c1af3
xor eax, eax
inc eax
jmp 0x100c1af5
xor eax, eax
push ecx
push eax
push edx
push ebx
push dword [esp + 0x20]
call fcn.100c2e99
mov edx, dword [esi + 0x40]
jmp 0x100c1b1d
mov eax, dword [edx]
cmp eax, 8
je 0x100c1b1a
mov ecx, dword [edx + 4]
mov eax, dword [eax*4 + 0x1000c698]
mov dword [ecx], eax
mov edx, dword [edx + 8]
test edx, edx
jne 0x100c1b07
push edx
push dword [esp + 0x14]
call fcn.100c1568
test eax, eax
js 0x100c1cd5
imul ebp, dword [esi + 0x58], 0x118
mov ecx, dword [esi + 0x50]
add ebp, ecx
mov dword [esp + 0x40], ebp
cmp ecx, ebp
jae 0x100c1b69
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 0x100c1b4a
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 0x100c1b87
mov eax, dword [esi + 0x4c]
jmp 0x100c1b8a
mov eax, dword [esi + 0x48]
push 0
push dword [eax + 0x3c]
push dword [esp + 0x18]
call fcn.100c33cb
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 0x100c1bd8
mov edi, dword [esp + 0x30]
push 4
pop ebp
push 0
push dword [edx]
push dword [esp + 0x18]
call fcn.100c33cb
add edx, ebp
inc edi
cmp edi, ebx
jb 0x100c1bb9
mov edi, dword [esp + 0x150]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esi + 0x50]
jmp 0x100c1bff
mov eax, dword [ebx]
lea ecx, [esp + 0x40]
push 0
push 0
push ecx
push ebx
push edi
call dword [eax*4 + 0x1000a790]
test eax, eax
js 0x100c1cc8
add ebx, 0x118
cmp ebx, ebp
jb 0x100c1bdd
or ebp, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x100c1c5a
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x4ac]
test eax, eax
jle 0x100c1c5a
mov ecx, dword [ecx + 0x4a8]
mov edx, dword [ecx]
lea ebx, [ecx + eax*4]
cmp ecx, ebx
jae 0x100c1c5a
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 0x100c1c4f
mov edx, dword [ecx]
jmp 0x100c1c33
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x150]
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 0x24]
test eax, eax
jne 0x100c1c97
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.10034010
test eax, eax
js 0x100c1cc8
mov ecx, dword [esp + 0x2c]
jmp 0x100c1ca4
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.10117410
mov eax, dword [esp + 0x48]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esi + 0x78]
jmp 0x100c1d2c
or dword [esi + 4], 0x40
push dword [esp + 0x10]
call fcn.100c5540
or ebx, 0xffffffff
cmp dword [esp + 0x14], ebx
je 0x100c1cec
push dword [esp + 0x14]
push edi
call fcn.1003bd20
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x10], 0
je 0x100c1cfc
push dword [esp + 0x10]
call fcn.100c9f59
cmp dword [esp + 0x18], 0
je 0x100c1d0c
push dword [esp + 0x18]
call fcn.100c9f59
cmp dword [esp + 0x34], 1
jne 0x100c1d1d
push 1
push 0
push edi
call fcn.1009603a
push edi
call fcn.100370f0
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.1011705d
add esp, 0x13c
ret 0x1c