Function at 0x480ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f29b
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x480f6d
push 0x401
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], eax
call fcn.00449300
mov eax, dword [0x617c48]
mov ecx, dword [ebp - 0x288]
mov edx, dword [ebx]
mov esi, dword [ebx + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x280], edx
mov dword [ebp - 0x27c], esi
test eax, eax
jne 0x480eef
mov dword [ebp - 0x130], str.getaddrinfo
mov dword [ebp - 0x12c], 0x4814a0
mov dword [ebp - 0x128], str.getnameinfo
mov dword [ebp - 0x124], 0x481810
mov dword [ebp - 0x120], str.freeaddrinfo
mov dword [ebp - 0x11c], fcn.00481450
cmp dword [0x617c44], eax
jne 0x480ee5
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x480ecf
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x23c]
push 0x10c
push eax
call fcn.0056b0a7
push 0x5bbb60
lea eax, [ebp - 0x23c]
push 0x10c
push eax
call fcn.0056b16a
add esp, 0x18
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x480e27
push str.getaddrinfo
push edi
call esi
test eax, eax
jne 0x480e77
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x23c]
push 0x10c
push eax
call fcn.0056b0a7
push str.wship6
lea eax, [ebp - 0x23c]
push 0x10c
push eax
call fcn.0056b16a
add esp, 0x18
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x480ec9
push str.getaddrinfo
push edi
call esi
test eax, eax
je 0x480ec2
xor esi, esi
nop dword [eax]
push dword [ebp + esi*8 - 0x130]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + esi*8 - 0x12c], eax
test eax, eax
je 0x480ec2
inc esi
cmp esi, 3
jl 0x480e80
mov eax, dword [ebp - 0x12c]
mov dword [0x611434], eax
mov eax, dword [ebp - 0x124]
mov dword [0x61143c], eax
mov eax, dword [ebp - 0x11c]
mov dword [fcn.00481450], eax
jmp 0x480ec9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x28c]
mov edx, dword [ebp - 0x280]
mov dword [0x617c44], 1
mov eax, dword [0x61143c]
mov dword [0x617c48], eax
push 2
push 0
push 0
push 0x401
push ecx
push edx
push esi
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test esi, esi
jne 0x480f89
mov esi, dword [ebp - 0x288]
push dword [ebx + 0x10]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
call fcn.0054454b
lea eax, [ebp - 0x280]
mov dword [ebx + 0x10], esi
push esi
push eax
call fcn.00483d60
mov esi, dword [eax]
mov dword [eax], 0
push dword [ebx + 0x10]
call fcn.0054454b
push dword [ebp - 0x280]
mov dword [ebx + 0x10], esi
call fcn.0054454b
push dword [ebp - 0x288]
call fcn.0054454b
mov eax, dword [ebx + 0x10]
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
push esi
push str.getnameinfo
lea ecx, [ebp - 0x278]
call fcn.0047fc60
push 0x6022dc
lea eax, [ebp - 0x278]
push eax
call fcn.005461fc
int3