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

Disassembly:
sub esp, 0x28
mov edx, dword [esp + 0x38]
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
test edx, edx
push edi
mov dword [esp + 0x10], esi
jne 0x101cdfae
mov eax, 1
jmp 0x101cdfb8
cmp edx, 2
jne 0x101cdfb8
mov eax, 4
mov ebx, dword [esp + 0x40]
mov ecx, dword [esi + 0x84]
mov edi, dword [ecx]
push ebx
mov ebx, dword [esp + 0x48]
push ebx
push edx
push 1
push eax
push 2
call dword [edi + 8]
mov ecx, esi
mov dword [esp + 0x44], eax
call fcn.1017d860
mov esi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov edi, dword [esp + 0x4c]
and ecx, 0xff7fffb1
or ecx, 0x600031
mov dword [esi + 8], ecx
mov eax, dword [edi + 0x7c]
shl eax, 0x18
xor eax, ecx
and eax, 0xf000000
xor eax, ecx
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x70]
shl ecx, 0x10
xor ecx, eax
and ecx, 0xf0000
xor ecx, eax
mov dword [esi + 8], ecx
movzx edx, byte [edi + 0x74]
shl edx, 0x14
xor edx, ecx
and edx, 0x100000
xor edx, ecx
mov dword [esi + 8], edx
mov eax, dword [edi + 0x78]
sub eax, 0
je 0x101ce049
sub eax, 1
jne 0x101ce04d
or byte [esi + 0x13], 2
jmp 0x101ce04d
and byte [esi + 0x13], 0xfd
mov eax, dword [edi + 0x80]
mov edx, dword [esi + 8]
mov ecx, eax
sar ecx, 1
and ecx, 1
shl ecx, 0x13
and eax, 1
or ecx, eax
mov eax, dword [esi]
shl ecx, 9
and edx, 0xeffffdff
or ecx, edx
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0x6c]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [esi]
push 4
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
mov ecx, esi
call fcn.10142680
mov edx, dword [edi + 0x10]
mov eax, edx
shr eax, 3
and al, 1
mov ecx, edx
shr ecx, 2
shr edx, 1
and cl, 1
and dl, 1
lea ebp, [edi + 0x18]
and eax, 1
add eax, eax
and ecx, 1
or eax, ecx
mov cl, byte [edi + 0x10]
add eax, eax
and edx, 1
or eax, edx
mov edx, dword [esi + 0xc]
add eax, eax
and edx, 0xfff0ffff
and ecx, 1
or eax, ecx
mov ecx, dword [esi + 8]
shl eax, 0x10
or eax, edx
mov dword [esi + 0xc], eax
movzx eax, byte [edi + 0x14]
shl eax, 0x1f
and ecx, 0x7fffffff
or eax, ecx
mov dword [esi + 8], eax
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov eax, dword [ebp]
mov ebx, dword [edi + 0x1c]
mov dword [esp + 0x40], edx
mov edx, ecx
and edx, 7
add edx, edx
add edx, edx
and eax, 3
or edx, eax
mov eax, dword [esi + 0xc]
shl edx, 5
and eax, 0xfffffc1f
or edx, eax
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x40]
push edx
push ecx
call fcn.100ea390
mov ecx, dword [esi + 0x10]
and ebx, 0xff
or ebx, 0x30000
and ecx, 0xfe7f600f
shl ebx, 5
or ebx, ecx
and eax, 0x10
or ebx, eax
add esp, 8
mov dword [esi + 0x10], ebx
mov edx, dword [edi + 0x28]
push edx
push 0
mov ecx, esi
call fcn.10142730
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
mov ebx, dword [edi + 0x2c]
and eax, 3
add eax, eax
add eax, eax
and ecx, 3
or eax, ecx
mov ecx, dword [esi + 0x10]
shl eax, 0xe
and edx, 3
or eax, edx
mov edx, dword [esp + 0x44]
add eax, eax
add eax, eax
and ecx, 0xfff0fff0
or eax, ecx
and ebx, 3
or eax, ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
and ah, 0x8f
or ah, 0xc
mov dword [esi + 0x14], edx
mov ecx, 1
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x101ce1dc
push 0x10
push esi
push 0x10216180
push ebp
push 0x10216180
push 0x10216180
push 0x10216180
push edi
push 0x31
lea ecx, [esp + 0x6c]
push ecx
jmp 0x101ce238
cmp eax, 2
jne 0x101ce255
mov edx, edi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
push 0x10
add eax, 1
push esi
mov dword [esp + 0x38], eax
add eax, 1
push 0x10216180
mov dword [esp + 0x30], eax
add eax, 1
push ebp
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], edx
lea edx, [esp + 0x44]
push edx
push edi
push 0x31
lea eax, [esp + 0x6c]
push eax
mov ecx, dword [esp + 0x38]
call fcn.101ca8d0
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0x28
ret 0x14
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x28
ret 0x14