Function at 0x4a2450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x541514]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], str.getaddrinfo
mov dword [ebp - 0x18], 0x4a2700
mov dword [ebp - 0x14], str.getnameinfo
mov dword [ebp - 0x10], 0x4a2f70
mov dword [ebp - 0xc], str.freeaddrinfo
mov dword [ebp - 8], fcn.004a2690
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
cmp dword [0x546cd8], 0
je 0x4a24bb
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x52dc2c]
jmp 0x4a2679
push 0x104
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4a24d6
jmp 0x4a25cf
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
push str.ws2_32
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.MSVCR80.dll_strcat_s]
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4a254b
push str.getaddrinfo
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4a254b
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
je 0x4a2553
jmp 0x4a25cf
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
push str.wship6
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.MSVCR80.dll_strcat_s]
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4a25c8
push str.getaddrinfo
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4a25c8
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x4a25cf
cmp dword [ebp - 0x20], 0
je 0x4a2664
mov dword [ebp - 4], 0
jmp 0x4a25eb
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [0x51e07c]
jge 0x4a262e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*8 - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*8 - 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [ebp + edx*8 - 0x18], 0
jne 0x4a262c
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x4a262e
jmp 0x4a25e2
cmp dword [ebp - 0x20], 0
je 0x4a2664
mov dword [ebp - 4], 0
jmp 0x4a2646
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [0x51e07c]
jge 0x4a2664
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*8 - 0x18]
mov dword [eax*8 + 0x52dc2c], edx
jmp 0x4a263d
mov dword [0x546cd8], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x52dc2c]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0047294a
mov esp, ebp
pop ebp
ret 4