Function at 0x401711
Capabilities:
Connect pipe
Get common file path

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x30]
mov eax, esi
xor eax, 0xfc4
push edi
mov edi, dword [esp + 0x20]
lea ebx, [esi - 0x5c3]
mov dword [esp + 0x34], eax
lea ecx, [esi - 0x5b6]
mov dword [esp + 0xc], ebx
lea edx, [esi - 0x3745]
mov dword [esp + 0x10], ecx
xor esi, 0x3745
mov dword [esp + 0x14], edx
add edi, 0xffffff29
lea eax, [esi + 0x394b]
cmp ebx, eax
mov ebx, dword [esp + 0x24]
je 0x401a22
lea eax, [ebx - 0x9b]
cmp ecx, eax
jg 0x40191b
mov eax, dword [0x65c49c]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], 0x8753f
mov ecx, dword [0x65c49c]
mov eax, dword [0x65c4e0]
cmp eax, dword [ecx + 0xe0]
jae 0x4017a7
mov eax, dword [ecx + 0x108]
add eax, 0x194a02f0
xor dword [edx + 4], eax
jmp 0x4017b1
mov eax, dword [ecx + 8]
imul eax, dword [edx + 8]
mov dword [edx + 8], eax
mov eax, dword [edx + 0x80]
cmp eax, dword [0x65c4b8]
jb 0x4017d6
mov eax, dword [0x65c49c]
mov eax, dword [eax + 0xa0]
add eax, 0x3718db02
mov dword [0x65c4ac], eax
jmp 0x4017e4
mov eax, dword [edx + 8]
sub eax, 0x1f3e6
xor dword [0x65c540], eax
mov eax, dword [0x65c5a8]
xor eax, dword [0x65c580]
add eax, 0x1ef39d
mov dword [edx + 0xd8], eax
mov ecx, dword [0x65c578]
cmp dword [edx + 0x80], ecx
je 0x401818
mov eax, dword [0x65c49c]
add ecx, 0xfff82be4
mov dword [eax + 0x1c], ecx
jmp 0x401821
mov eax, dword [edx + 0xe0]
sub dword [edx + 0x40], eax
mov eax, dword [edx]
xor eax, 0x3bfbcc40
mov dword [0x65c4c0], eax
mov eax, dword [edx + 0xd8]
sub eax, dword [0x65c4a8]
sub eax, 0x8d980
mov dword [0x65c538], eax
mov eax, dword [0x65c49c]
mov ecx, dword [edx + 0xd4]
sub ecx, dword [eax + 0xc0]
mov eax, 0x159b23
add ecx, 0x15b6d6
mov dword [edx + 0xf8], ecx
mov ecx, dword [0x65c49c]
sub eax, dword [edx + 0xd4]
sub eax, dword [0x65c598]
add dword [ecx + 0x98], eax
mov esi, dword [0x65c4bc]
jmp 0x4018bb
mov ecx, dword [0x65c49c]
mov eax, dword [edx + 0xd8]
xor eax, dword [0x65c4e0]
sub eax, 0x8f4ee
imul eax, dword [ecx + 0x94]
mov dword [ecx + 0x94], eax
mov eax, esi
mov ecx, dword [0x65c49c]
imul eax, esi
add dword [ecx + 0x98], eax
inc esi
cmp esi, dword [0x65c4c0]
jbe 0x401885
mov eax, dword [edx + 0x50]
cmp eax, dword [edx + 0x30]
jae 0x4018e0
mov eax, dword [0x65c588]
add eax, 6
imul eax, dword [edx + 0x98]
mov dword [edx + 0x98], eax
mov eax, dword [0x65c580]
cmp eax, dword [0x65c5a8]
jb 0x4018fb
mov eax, dword [0x65c49c]
mov eax, dword [eax + 0x98]
mov dword [edx + 0x38], eax
mov eax, dword [edx + 8]
cmp eax, dword [edx + 0xd4]
jb 0x401a4d
mov ecx, dword [0x65c49c]
mov eax, dword [edx + 4]
sub dword [ecx + 0x38], eax
jmp 0x401a4d
lea eax, [ecx - 0x3563]
xor eax, edx
push ebp
mov ebp, dword [esp + 0x30]
cmp dword [0x65c540], eax
jne 0x4019c1
mov eax, dword [ebp + 0x104]
or eax, dword [ebp + 0x3c]
push eax
mov eax, dword [0x65c49c]
imul ecx, edx, 0x3a21
or ecx, dword [eax + 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ecx, dword [0x65c49c]
sub edi, dword [ecx + 0x74]
push edi
mov edi, dword [esp + 0x3c]
mov eax, edi
imul eax, edi
sub eax, dword [ecx + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [0x65c530]
or eax, dword [0x65c578]
imul eax, dword [ebp + 0x8c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebp + 0x8c], eax
mov eax, dword [esp + 0x10]
sub eax, ecx
imul eax, dword [ebp + 0xd4]
imul eax, edi
mov dword [ebp + 0xd4], eax
mov eax, dword [ebp + 0x114]
xor eax, 0x3182
imul eax, eax, 0x3a21
or ecx, eax
jmp 0x4019c5
mov edi, dword [esp + 0x38]
push dword [0x65c49c]
imul eax, dword [0x65c4e8], 0x3745
push eax
mov eax, dword [ebp + 0x108]
add eax, dword [0x65c570]
xor eax, 0x3a21
push eax
lea eax, [edi + ebx]
push eax
mov eax, dword [0x65c4f8]
xor eax, esi
and esi, 0x3894
imul esi, ecx
and eax, edx
push eax
push esi
call fcn.00414380
mov eax, dword [ebp + 0xd0]
add esp, 0x18
xor eax, dword [0x65c53c]
xor eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
jmp 0x401a4d
mov eax, dword [0x65c4fc]
or eax, edi
cmp ebx, eax
ja 0x401a4d
mov eax, dword [0x65c49c]
mov ecx, dword [esp + 0x2c]
sub edi, dword [eax + 0x9c]
add dword [0x65c4d0], edi
mov eax, dword [ecx + 0x18]
add eax, edx
or dword [ecx + 0xa0], eax
pop edi
pop esi
lea eax, [ebx - 0x6c9]
pop ebx
add esp, 0xc
ret