Function at 0x100725f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x240
call fcn.101d14f0
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], str.getaddrinfo
mov dword [ebp - 0x18], 0x100728a0
mov dword [ebp - 0x14], str.getnameinfo
mov dword [ebp - 0x10], 0x10073160
mov dword [ebp - 0xc], str.freeaddrinfo
mov dword [ebp - 8], fcn.10072830
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
cmp dword [0x1027b2e4], 0
je 0x1007265f
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x102737d0]
jmp 0x10072819
push 0x104
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1007267a
jmp 0x1007276f
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call fcn.101d832c
add esp, 0xc
push str.ws2_32
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call fcn.101d82b8
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 0x100726ed
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 0x100726ed
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 0x100726f5
jmp 0x1007276f
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call fcn.101d832c
add esp, 0xc
push str.wship6
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call fcn.101d82b8
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 0x10072768
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 0x10072768
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x1007276f
cmp dword [ebp - 0x20], 0
je 0x10072804
mov dword [ebp - 4], 0
jmp 0x1007278b
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [0x10213130]
jge 0x100727ce
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 0x100727cc
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x100727ce
jmp 0x10072782
cmp dword [ebp - 0x20], 0
je 0x10072804
mov dword [ebp - 4], 0
jmp 0x100727e6
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [0x10213130]
jge 0x10072804
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*8 - 0x18]
mov dword [eax*8 + 0x102737d0], edx
jmp 0x100727dd
mov dword [0x1027b2e4], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x102737d0]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.101d14d7
mov esp, ebp
pop ebp
ret 4