Function at 0x44d050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fe5b
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x56c36c]
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 0x44d2dd
push 0x401
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], eax
call fcn.00407640
mov eax, dword [0x5718c8]
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 0x44d25f
mov dword [ebp - 0x130], str.getaddrinfo
mov dword [ebp - 0x12c], 0x44d810
mov dword [ebp - 0x128], str.getnameinfo
mov dword [ebp - 0x124], 0x44db80
mov dword [ebp - 0x120], str.freeaddrinfo
mov dword [ebp - 0x11c], fcn.0044d7c0
cmp dword [0x5718c4], eax
jne 0x44d255
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x44d23f
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x23c]
push 0x10c
push eax
call fcn.004acdc8
push 0x531f54
lea eax, [ebp - 0x23c]
push 0x10c
push eax
call fcn.004ace8b
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 0x44d197
push str.getaddrinfo
push edi
call esi
test eax, eax
jne 0x44d1e7
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.004acdc8
push str.wship6
lea eax, [ebp - 0x23c]
push 0x10c
push eax
call fcn.004ace8b
add esp, 0x18
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44d239
push str.getaddrinfo
push edi
call esi
test eax, eax
je 0x44d232
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 0x44d232
inc esi
cmp esi, 3
jl 0x44d1f0
mov eax, dword [ebp - 0x12c]
mov dword [0x56c2c8], eax
mov eax, dword [ebp - 0x124]
mov dword [0x56c2d0], eax
mov eax, dword [ebp - 0x11c]
mov dword [fcn.0044d7c0], eax
jmp 0x44d239
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 [0x5718c4], 1
mov eax, dword [0x56c2d0]
mov dword [0x5718c8], 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 0x44d2f9
mov esi, dword [ebp - 0x288]
push dword [ebx + 0x10]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
call fcn.0047f232
lea eax, [ebp - 0x280]
mov dword [ebx + 0x10], esi
push esi
push eax
call fcn.0044ef90
mov esi, dword [eax]
mov dword [eax], 0
push dword [ebx + 0x10]
call fcn.0047f232
push dword [ebp - 0x280]
mov dword [ebx + 0x10], esi
call fcn.0047f232
push dword [ebp - 0x288]
call fcn.0047f232
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.0047f941
mov esp, ebp
pop ebp
ret
push esi
push str.getnameinfo
lea ecx, [ebp - 0x278]
call fcn.0044bfd0
push 0x56138c
lea eax, [ebp - 0x278]
push eax
call fcn.00480e30
int3