Function at 0x5aa480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x23c
call fcn.007081d0
mov eax, dword [0x7d0e44]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x5a9e10
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x5aa1c0
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.005a9d90
xor eax, eax
jne 0x5aa4dd
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
cmp dword [0x7d26b4], 0
je 0x5aa50e
movzx ecx, word [ebp + 8]
mov eax, dword [ecx*8 + 0x7cfe34]
jmp 0x5aa73e
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x5aa529
jmp 0x5aa652
lea eax, [ebp - 0x218]
push eax
push 0x10c
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push str.ws2_32
push 0x10c
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x5aa5b3
push str.getaddrinfo
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x5aa5b3
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x234], 0
cmp dword [ebp - 0x234], 0
je 0x5aa5c1
jmp 0x5aa652
lea eax, [ebp - 0x218]
push eax
push 0x10c
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push str.wship6
push 0x10c
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x5aa64b
push str.getaddrinfo
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x5aa64b
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x234], 0
jmp 0x5aa652
cmp dword [ebp - 0x234], 0
je 0x5aa729
mov dword [ebp - 0x238], 0
jmp 0x5aa67a
mov eax, dword [ebp - 0x238]
add eax, 1
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
cmp ecx, dword [0x7714c8]
jge 0x5aa6db
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp + edx*8 - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x238]
mov dword [ebp + edx*8 - 0x22c], eax
mov eax, dword [ebp - 0x238]
cmp dword [ebp + eax*8 - 0x22c], 0
jne 0x5aa6d9
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x234], 0
jmp 0x5aa6db
jmp 0x5aa66b
cmp dword [ebp - 0x234], 0
je 0x5aa729
mov dword [ebp - 0x238], 0
jmp 0x5aa6ff
mov edx, dword [ebp - 0x238]
add edx, 1
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x238]
cmp eax, dword [0x7714c8]
jge 0x5aa729
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp + edx*8 - 0x22c]
mov dword [ecx*8 + 0x7cfe34], eax
jmp 0x5aa6f0
mov dword [0x7d26b4], 1
movzx ecx, word [ebp + 8]
mov eax, dword [ecx*8 + 0x7cfe34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007081b5
mov esp, ebp
pop ebp
ret 4