Function at 0x100176f0
Capabilities:
Get common file path
Link many functions at runtime
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101870b6
push eax
mov dword fs:[0], esp
sub esp, 0x418
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x10017730
mov eax, 1
pop esi
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
add esp, 0x424
ret
mov eax, dword [0x101f1d98]
test eax, eax
je 0x10017752
push str._CMemSocketSys_Initialize_______
push str.GetTxt
push 0xffffffffffffffff
push 0x101f1d2c
call fcn.100066b0
add esp, 0x10
mov eax, dword [0x101f1cf8]
push edi
lea ecx, [esp + 8]
push eax
push ecx
call fcn.10012380
add esp, 8
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
mov dword [esp + 0x428], 0
push edx
push 0x207
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [0x101f1d98]
test ecx, ecx
je 0x100177c0
lea ecx, [esp + 0x10]
push ecx
push eax
push str.CMemSocketSys_Initialize_1__08x___s_
push str.GetTxt
push 0xffffffffffffffff
push 0x101f1d2c
call fcn.100066b0
add esp, 0x18
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push ebp
push eax
mov edi, dword [edx - 8]
call fcn.100547f0
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 4
cmp edi, eax
jne 0x100177f5
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.10055d2e
add esp, 8
test eax, eax
je 0x100177fc
mov eax, dword [esp + 0xc]
push eax
call ebp
push 0x101f1d00
lea ecx, [esp + 0x14]
call fcn.10032fc0
mov ecx, dword [esp + 0xc]
push str.XMemSS.dll
push ecx
lea edx, [esp + 0x18]
push 0x101aeb2c
push edx
mov byte [esp + 0x43c], 1
call fcn.100366e0
mov eax, dword [esp + 0x20]
add esp, 0x10
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esi + 4], eax
mov ecx, dword [0x101f1d98]
test ecx, ecx
je 0x10017864
push eax
push str.CMemSocketSys_Initialize_2__08x_
push str.GetTxt
push 0xffffffffffffffff
push 0x101f1d2c
call fcn.100066b0
add esp, 0x14
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
mov edi, dword [ecx - 8]
call fcn.100547f0
add esp, 4
cmp edi, eax
jne 0x10017892
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.10055d2e
add esp, 8
test eax, eax
je 0x10017899
lea edx, [esp + 0x14]
push edx
call ebp
mov eax, dword [0x101f1d98]
pop ebp
test eax, eax
je 0x100178bc
push str.CMemSocketSys_Initialize_3
push str.GetTxt
push 0xffffffffffffffff
push 0x101f1d2c
call fcn.100066b0
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x10017933
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Create
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.Close
push eax
call edi
mov ecx, dword [esi + 4]
push str.IsRunning
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push str.SetSockSysName
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push str.GetSockSysName
push eax
call edi
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x1c], eax
test ecx, ecx
je 0x10017933
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10017933
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10017933
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10017933
test eax, eax
je 0x10017933
mov dword [esi + 8], 1
mov eax, dword [0x101f1d98]
pop edi
test eax, eax
je 0x10017956
push str._CMemSocketSys_Initialize
push str.GetTxt
push 0xffffffffffffffff
push 0x101f1d2c
call fcn.100066b0
add esp, 0x10
mov eax, dword [esi + 8]
test eax, eax
jne 0x10017964
mov ecx, esi
call fcn.100179d0
mov eax, dword [0x101f1d98]
test eax, eax
je 0x10017986
push str._CMemSocketSys_Initialize___
push str.GetTxt
push 0xffffffffffffffff
push 0x101f1d2c
call fcn.100066b0
add esp, 0x10
mov esi, dword [esi + 8]
lea ecx, [esp + 8]
mov byte [esp + 0x424], 0
call fcn.10033760
lea ecx, [esp + 4]
mov dword [esp + 0x424], 0xffffffff
call fcn.10033760
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x424
ret