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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
cmp byte [edi + 0xc], 0
je 0x1017dc77
cmp byte [ebp + 0x10], 0
jne 0x1017d99b
cmp byte [ebp + 0x14], 0
jne 0x1017d99b
push dword [ebp + 8]
call fcn.1017dc90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
push dword [eax + 0x18c]
call fcn.1017dd60
mov ebx, eax
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x1017dc77
cmp byte [ebp + 0x10], 0
je 0x1017d9cd
cmp byte [ebp + 0x14], 0
jne 0x1017d9c9
cmp dword [ebx + 0x3c], 1
je 0x1017d9cd
mov cl, 1
jmp 0x1017d9cf
xor cl, cl
cmp byte [ebx + 2], 0
mov al, byte [edi + 0x24]
mov byte [esp + 0xf], cl
jne 0x1017da25
test al, al
je 0x1017d9e6
cmp byte [ebx + 1], 0
je 0x1017da2d
test cl, cl
jne 0x1017d9f4
cmp byte [edi + 0x78], cl
setne byte [esp + 0x10]
jmp 0x1017d9fd
mov byte [esp + 0x10], 0
test al, al
je 0x1017da15
cmp dword [ebx + 8], 0
je 0x1017da15
cmp byte [ebx + 0x5c], 0
je 0x1017da15
mov ecx, ebx
call fcn.1017e940
mov byte [esp + 0x10], 0
push dword [esp + 0x10]
mov ecx, ebx
call fcn.1017ee30
jmp 0x1017db43
test al, al
je 0x1017db36
mov eax, dword [0x11d0c5b8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0x7a68]
mov esi, dword [esi + 8]
mov dword [esp + 0x20], esi
mov eax, dword [esi + 0x20]
add eax, 0x90
cmp eax, dword [esi + 0x24]
jb 0x1017da65
push 0x24
mov ecx, esi
call fcn.101e4a10
mov edi, dword [esi + 0x20]
mov ecx, 0xfff0
mov dword [edi], 0x80000564
mov eax, dword [ebx + 0x4c]
add eax, 0xf
mov dword [edi + 4], 0x200100ba
and eax, 0xfffffff0
cmp eax, ecx
cmovb ecx, eax
mov eax, ecx
shr ecx, 4
and eax, 0xffffff
mov dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x1c]
shl eax, 4
or eax, 1
mov dword [edi + 8], eax
add edi, 0xc
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov edx, dword [ebx + 0x60]
cmp dword [edx + 0x14], 1
jne 0x1017dac6
mov edx, dword [ebx + 0x50]
cmp ecx, dword [ebx + 0x54]
jb 0x1017dada
mov edx, dword [ebx + 0x58]
jmp 0x1017dada
mov eax, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
mov ecx, dword [esp + 0x10]
call fcn.10451430
mov edx, eax
and edx, 0xf
mov ecx, dword [edx*4 + 0x11224540]
and edx, 0xf
imul ecx, esi
shl edx, 0x10
mov dword [edi], 0x200100be
shr ecx, 1
movzx eax, cx
mov ecx, dword [esp + 0x14]
or edx, eax
movzx eax, cl
inc ecx
shl edx, 8
or edx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [edi + 4], edx
add edi, 8
mov dword [esp + 0x10], eax
cmp eax, 0x40
jb 0x1017dab0
mov esi, dword [esp + 0x20]
mov dword [edi], 0x800100bf
add edi, 4
mov dword [esi + 0x20], edi
mov edi, dword [esp + 0x18]
mov byte [ebx + 1], 1
push 1
mov ecx, ebx
call fcn.1017ee30
mov byte [ebx + 2], 0
cmp byte [edi + 0x24], 0
je 0x1017db91
cmp byte [esp + 0xf], 0
je 0x1017db91
mov eax, dword [0x11d0c5b8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 0x7a68]
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x20]
add eax, 4
cmp eax, dword [esi + 0x24]
jb 0x1017db82
push 1
mov ecx, esi
call fcn.101e4a10
mov eax, dword [esi + 0x20]
mov dword [eax], 0x800100bf
add eax, 4
mov dword [esi + 0x20], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x162c]
shr eax, 7
test al, 1
je 0x1017dc6d
movzx eax, byte [ebp + 0x10]
mov ecx, dword fs:[0x2c]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebp + 0x14]
shl eax, 4
mov dword [esp + 0x20], eax
mov eax, dword [0x11d0c5b8]
mov edi, dword [ecx + eax*4]
mov eax, dword [edi + 0x10]
mov esi, dword [eax + 0x7a68]
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x20]
add eax, 0x10
cmp eax, dword [esi + 0x24]
jb 0x1017dbea
push 4
mov ecx, esi
call fcn.101e4a10
mov edx, dword [edi + 0x10]
mov edi, 1
mov ebx, dword [esi + 0x20]
mov ecx, dword [edx + 0xf944]
mov eax, dword [edx + 0xf880]
shl edi, cl
mov ecx, dword [edx + 0xf93c]
dec edi
mov edx, dword [edx + 0xf884]
and ecx, 0xf
shl ecx, 3
call fcn.10451430
movzx eax, al
not eax
and eax, edi
mov edi, dword [esp + 0x18]
mov dword [esi + 0xb4c], eax
mov eax, dword [esi + eax*4 + 0x74c]
or eax, 0x1000
shl eax, 4
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
or eax, dword [esp + 0x1c]
mov dword [ebx + 4], 0x200104b2
mov dword [ebx + 8], eax
lea eax, [ebx + 0x10]
mov dword [esi + 0xb4c], 0xffffffff
mov dword [ebx + 0xc], 0x1fff0
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x20], eax
mov word [edi + 0x78], 0x100
mov byte [ebx + 0x5c], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10