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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
lea eax, [esp + 0x40]
push 1
push 0x10240165
mov dword [esp + 0x30], edx
push edx
mov dword [esp + 0x38], ecx
push ecx
push eax
call fcn.101bae60
add esp, 0x14
test byte [esp + 0x40], 1
je 0x1017c85c
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
mov eax, ebx
mov dword [esp], ecx
sub eax, ecx
cmp eax, esi
jae 0x1017c9bc
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x78]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
cmp edi, ecx
cmova ecx, edi
lea edi, [edx - 1]
mov edx, 1
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x24], ebx
xor edi, edi
mov ebx, 1
movzx ecx, byte [ecx + eax]
shld edi, edx, cl
shl ebx, cl
test cl, 0x20
mov ecx, 0
cmovne edi, ebx
cmovne ebx, ecx
and edi, dword [esp + 0x38]
and ebx, dword [esp + 0x3c]
or ebx, edi
je 0x1017c7c0
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
cmovb ebx, ecx
cmp dword [esp + 8], 0xffffffff
cmove ebx, ecx
lea ecx, [ebx - 1]
cmp ecx, dword [esp]
jae 0x1017c7e0
mov edx, dword [esp + 0x34]
mov ecx, ebx
neg ecx
lea edi, [edx + ebx]
lea ebx, [ebx + eax - 1]
nop
test ecx, ecx
je 0x1017c7e8
cmp ebx, esi
jae 0x1017ca07
movzx edx, byte [edi]
mov esi, dword [esp + 4]
inc ecx
dec edi
mov byte [esp + 0x1c], dl
movzx edx, byte [esp + 0x1c]
cmp dl, byte [esi + ebx]
mov esi, dword [esp + 0xc]
lea ebx, [ebx - 1]
je 0x1017c770
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x14]
sub eax, ecx
cmp dword [esp + 8], 0xffffffff
mov ecx, dword [esp]
mov edx, 1
jne 0x1017c7ca
jmp 0x1017c7ce
cmp dword [esp + 8], 0xffffffff
mov ecx, dword [esp]
je 0x1017c7ce
mov dword [esp + 0x20], ecx
mov ebx, eax
sub eax, dword [esp]
cmp eax, esi
jb 0x1017c708
jmp 0x1017c9bc
test ebx, ebx
jne 0x1017ca28
cmp dword [esp + 8], 0xffffffff
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 4]
cmove ecx, dword [esp]
lea edi, [edx + eax]
cmp ecx, ebx
cmovbe ecx, ebx
nop word cs:[eax + eax]
nop
cmp ecx, ebx
je 0x1017c96f
cmp dword [esp + 0x10], ebx
je 0x1017c9f5
lea edx, [eax + ebx]
cmp edx, esi
jae 0x1017c9e0
mov edx, dword [esp + 0x18]
movzx edx, byte [edx + ebx]
cmp dl, byte [edi + ebx]
lea ebx, [ebx + 1]
je 0x1017c810
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
sub eax, ecx
cmp dword [esp + 8], 0xffffffff
mov edx, 1
jne 0x1017c7ca
jmp 0x1017c7ce
cmp byte [esp + 0x4e], 0
jne 0x1017c9bc
mov eax, dword [esp + 0x48]
mov bh, byte [esp + 0x4d]
test eax, eax
je 0x1017c97e
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov bl, bh
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], edi
jmp 0x1017c8a5
mov edx, ebx
xor dl, 1
cmp bl, 1
setne bh
add eax, ecx
mov bl, dl
je 0x1017c97e
cmp eax, dword [esp + 0x1c]
jae 0x1017c8c0
cmp byte [edi + eax], 0xbf
jg 0x1017c8c6
jmp 0x1017ca16
jne 0x1017ca16
movsx edx, byte [edi + eax - 1]
test edx, edx
jns 0x1017c935
movzx ecx, byte [edi + eax - 2]
cmp cl, 0xc0
jge 0x1017c90d
mov byte [esp + 4], bh
mov byte [esp + 0x18], bl
movzx ebx, byte [edi + eax - 3]
cmp bl, 0xc0
mov dword [esp + 0x10], ebx
jge 0x1017c912
mov esi, dword [esp + 0xc]
movzx edi, byte [esi + eax - 4]
mov esi, dword [esp + 0x10]
and edi, 7
and esi, 0x3f
shl edi, 6
or esi, edi
mov edi, dword [esp + 0xc]
jmp 0x1017c919
and ecx, 0x1f
jmp 0x1017c92a
mov esi, dword [esp + 0x10]
and esi, 0xf
movzx ebx, byte [esp + 0x18]
mov bh, byte [esp + 4]
shl esi, 6
and ecx, 0x3f
or ecx, esi
and dl, 0x3f
shl ecx, 6
movzx edx, dl
or edx, ecx
test bh, 1
jne 0x1017c96f
mov ecx, 0xffffffff
cmp edx, 0x80
jb 0x1017c890
mov ecx, 0xfffffffe
cmp edx, 0x800
jb 0x1017c890
xor ecx, ecx
cmp edx, 0x10000
setb cl
or ecx, 0xfffffffc
jmp 0x1017c890
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
xor ecx, ecx
inc eax
jne 0x1017c990
jmp 0x1017c9aa
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov eax, 1
test bh, 1
je 0x1017c9bc
cmp eax, edi
jae 0x1017c9a2
cmp byte [esi + eax], 0xbf
jle 0x1017ca37
mov ecx, eax
jmp 0x1017c9aa
mov ecx, edi
jne 0x1017ca37
add esi, ecx
sub edi, ecx
push edi
push esi
call fcn.101bcaf0
add esp, 8
test al, 1
je 0x1017c9cd
mov eax, dword [ebp + 8]
mov dword [eax], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
shr eax, 0x10
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov word [ecx + 8], ax
mov eax, ecx
jmp 0x1017c9c5
add eax, dword [esp + 0x14]
cmp esi, eax
cmova eax, esi
push 0x1023ffa0
push esi
push eax
call fcn.101cb9f0
push 0x1023ff90
push dword [esp + 4]
push dword [esp + 0x18]
call fcn.101cb9f0
push 0x1023ffc0
push dword [esp + 0x10]
push ebx
call fcn.101cb9f0
push 0x1023ffe0
push eax
push 0
push dword [esp + 0x28]
push edi
call fcn.101cbe90
push 0x1023ffb0
push dword [esp + 4]
push ecx
call fcn.101cb9f0
push 0x10240168
push edi
push eax
push edi
push esi
call fcn.101cbe90
int3