Function at 0x5be3b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x23c
call fcn.006f5ae0
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x5bdd50
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x5be0f0
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.005bdce0
xor eax, eax
jne 0x5be40d
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
cmp dword [0x7f32ac], 0
je 0x5be43e
movzx ecx, word [ebp + 8]
mov eax, dword [ecx*8 + 0x7da284]
jmp 0x5be66a
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x5be459
jmp 0x5be57e
lea eax, [ebp - 0x218]
push eax
push 0x10c
lea ecx, [ebp - 0x110]
push ecx
call fcn.0070bdc8
add esp, 0xc
push str.ws2_32
push 0x10c
lea edx, [ebp - 0x110]
push edx
call fcn.0070be22
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 0x5be4e1
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 0x5be4e1
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 0x5be4ef
jmp 0x5be57e
lea eax, [ebp - 0x218]
push eax
push 0x10c
lea ecx, [ebp - 0x110]
push ecx
call fcn.0070bdc8
add esp, 0xc
push str.wship6
push 0x10c
lea edx, [ebp - 0x110]
push edx
call fcn.0070be22
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 0x5be577
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 0x5be577
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x234], 0
jmp 0x5be57e
cmp dword [ebp - 0x234], 0
je 0x5be655
mov dword [ebp - 0x238], 0
jmp 0x5be5a6
mov eax, dword [ebp - 0x238]
add eax, 1
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
cmp ecx, dword [0x763cec]
jge 0x5be607
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 0x5be605
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x234], 0
jmp 0x5be607
jmp 0x5be597
cmp dword [ebp - 0x234], 0
je 0x5be655
mov dword [ebp - 0x238], 0
jmp 0x5be62b
mov edx, dword [ebp - 0x238]
add edx, 1
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x238]
cmp eax, dword [0x763cec]
jge 0x5be655
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp + edx*8 - 0x22c]
mov dword [ecx*8 + 0x7da284], eax
jmp 0x5be61c
mov dword [0x7f32ac], 1
movzx ecx, word [ebp + 8]
mov eax, dword [ecx*8 + 0x7da284]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4db8
mov esp, ebp
pop ebp
ret 4