Function at 0x572c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x23c
call fcn.006db7b0
mov eax, dword [0x7eba44]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0x75b6c0
mov dword [ebp - 0x22c], 0x5725a0
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x572940
mov dword [ebp - 0x220], 0x75b6d8
mov dword [ebp - 0x21c], fcn.00572530
xor eax, eax
jne 0x572c5d
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
cmp dword [0x7ede0c], 0
je 0x572c8e
movzx ecx, word [ebp + 8]
mov eax, dword [ecx*8 + 0x7eaa6c]
jmp 0x572eba
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x572ca9
jmp 0x572dce
lea eax, [ebp - 0x218]
push eax
push 0x10c
lea ecx, [ebp - 0x110]
push ecx
call fcn.006ec465
add esp, 0xc
push str.ws2_32
push 0x10c
lea edx, [ebp - 0x110]
push edx
call fcn.006f5144
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 0x572d31
push 0x75b6c0
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 0x572d31
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 0x572d3f
jmp 0x572dce
lea eax, [ebp - 0x218]
push eax
push 0x10c
lea ecx, [ebp - 0x110]
push ecx
call fcn.006ec465
add esp, 0xc
push str.wship6
push 0x10c
lea edx, [ebp - 0x110]
push edx
call fcn.006f5144
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 0x572dc7
push 0x75b6c0
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 0x572dc7
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x234], 0
jmp 0x572dce
cmp dword [ebp - 0x234], 0
je 0x572ea5
mov dword [ebp - 0x238], 0
jmp 0x572df6
mov eax, dword [ebp - 0x238]
add eax, 1
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
cmp ecx, dword [0x75b6bc]
jge 0x572e57
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 0x572e55
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x234], 0
jmp 0x572e57
jmp 0x572de7
cmp dword [ebp - 0x234], 0
je 0x572ea5
mov dword [ebp - 0x238], 0
jmp 0x572e7b
mov edx, dword [ebp - 0x238]
add edx, 1
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x238]
cmp eax, dword [0x75b6bc]
jge 0x572ea5
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp + edx*8 - 0x22c]
mov dword [ecx*8 + 0x7eaa6c], eax
jmp 0x572e6c
mov dword [0x7ede0c], 1
movzx ecx, word [ebp + 8]
mov eax, dword [ecx*8 + 0x7eaa6c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006dbabd
mov esp, ebp
pop ebp
ret 4