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

Disassembly:
sub esp, 0x50
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, ecx
mov dword [esp + 0x10], edx
push ebx
push ebp
push esi
mov ebx, dword [eax + 0x74]
mov ecx, dword [eax + 0xbc]
mov ebp, dword [eax + 0x78]
and ecx, 0x400
push edi
mov dword [esp + 0x24], eax
xor edi, edi
mov eax, dword [ebx + 8]
push ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], edi
call eax
mov ecx, dword [ebx + 0x18]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
push ebp
call ecx
add esp, 4
test edx, edx
jl 0x100cdbdb
jg 0x100cdbc7
cmp eax, 0x100000
jbe 0x100cdbdb
mov eax, dword [ebx + 0x10]
push 2
push 0xffffffffffffffff
push 0xfff00000
push ebp
call eax
add esp, 0x10
jmp 0x100cdbe8
mov eax, dword [ebx + 0xc]
push 0
push 0
push ebp
call eax
add esp, 0xc
lea eax, [esp + 0x3c]
mov edx, ebp
push eax
mov ecx, ebx
call fcn.100cd5d0
mov ecx, dword [ebx + 8]
add esp, 4
mov esi, eax
push ebp
call ecx
mov ecx, eax
add esp, 4
and ecx, edx
cmp ecx, 0xffffffff
je 0x100cde23
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
cmp esi, 0xffffffff
jne 0x100cdc5f
cmp dword [esp + 0x1c], 0
jne 0x100cddfa
test edx, edx
jl 0x100cdc4d
jg 0x100cdc36
cmp eax, 0x1e8480
jbe 0x100cdc4d
mov eax, dword [ebx + 0x10]
push 1
push 0xffffffffffffffff
push 0xffe17b80
push ebp
call eax
add esp, 0x10
jmp 0x100cddcb
mov eax, dword [ebx + 0xc]
push 0
push 0
push ebp
call eax
add esp, 0xc
jmp 0x100cddcb
inc dword [esp + 0x1c]
mov esi, dword [esp + 0x50]
test esi, esi
je 0x100cdd7d
cmp dword [esp + 0x20], 0
je 0x100cdc93
movzx eax, byte [esp + 0x46]
xor ecx, ecx
add ecx, dword [esp + 0x4c]
cdq
mov edx, dword [esp + 0x20]
adc eax, 0
add ecx, esi
adc eax, 0
mov dword [edx], ecx
mov dword [edx + 4], eax
inc edi
mov dword [esp + 0x28], edi
mov esi, dword [esp + 0x40]
add esi, 0xffffffe8
cmp esi, 2
jb 0x100cddcb
push 1
lea eax, [esp + 0x3e]
push eax
mov eax, dword [ebx]
push ebp
call eax
add esp, 0xc
cmp eax, 1
jne 0x100cde23
push eax
lea eax, [esp + 0x3d]
push eax
mov eax, dword [ebx]
push ebp
call eax
add esp, 0xc
cmp eax, 1
jne 0x100cde23
movzx edi, byte [esp + 0x39]
sub esi, 2
mov al, byte [esp + 0x3a]
add edi, edi
test al, al
jns 0x100cdd3c
cmp esi, 2
jb 0x100cde23
push 1
lea eax, [esp + 0x3d]
push eax
mov eax, dword [ebx]
push ebp
call eax
add esp, 0xc
cmp eax, 1
jne 0x100cde23
push eax
lea eax, [esp + 0x3f]
push eax
mov eax, dword [ebx]
push ebp
call eax
add esp, 0xc
cmp eax, 1
jne 0x100cde23
movzx ecx, byte [esp + 0x3b]
movzx eax, byte [esp + 0x39]
shl ecx, 8
add ecx, eax
mov al, byte [esp + 0x3a]
shl ecx, 9
add edi, ecx
sub esi, 2
and al, 0x3f
mov byte [esp + 0x3a], al
cmp al, 0x26
je 0x100cdd51
cmp dword [esp + 0x2c], 0
je 0x100cddae
cmp al, 0x29
jne 0x100cddae
cmp edi, 0x10
jne 0x100cddae
cmp esi, edi
jb 0x100cddae
mov eax, dword [esp + 0x24]
add eax, 0x34
push edi
push eax
mov eax, dword [ebx]
push ebp
call eax
add esp, 0xc
cmp eax, edi
jne 0x100cde23
mov eax, dword [esp + 0x24]
mov byte [eax + 0x44], 1
jmp 0x100cddbc
test edi, edi
jne 0x100cdc98
test edx, edx
jl 0x100cdc4d
jg 0x100cdd9a
cmp eax, 0x100000
jbe 0x100cdc4d
mov eax, dword [ebx + 0x10]
push 1
push 0xffffffffffffffff
push 0xfff00000
push ebp
call eax
add esp, 0x10
jmp 0x100cddcb
mov eax, dword [ebx + 0x10]
push 1
push 0
push edi
push ebp
call eax
add esp, 0x10
sub esi, edi
cmp esi, 2
jae 0x100cdca8
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x3c]
mov edx, ebp
push eax
mov ecx, ebx
call fcn.100cd5d0
add esp, 4
mov esi, eax
mov eax, dword [ebx + 8]
push ebp
call eax
add esp, 4
cmp eax, dword [esp + 0x30]
jne 0x100cdc11
cmp edx, dword [esp + 0x34]
jmp 0x100cdc0b
push dword [esp + 0x14]
mov eax, dword [ebx + 0xc]
push dword [esp + 0x1c]
push ebp
call eax
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.10142783
add esp, 0x50
ret
push dword [esp + 0x14]
mov eax, dword [ebx + 0xc]
push dword [esp + 0x1c]
push ebp
call eax
mov ecx, dword [esp + 0x68]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10142783
add esp, 0x50
ret