Function at 0x100075f0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x10032c38]
sub esp, 0x22c
test eax, eax
push esi
push edi
jne 0x100077b6
mov eax, dword [0x10032c28]
mov dword [esp + 8], str.getaddrinfo
test eax, eax
mov dword [esp + 0xc], 0x100026b0
mov dword [esp + 0x10], str.getnameinfo
mov dword [esp + 0x14], 0x100033f0
mov dword [esp + 0x18], str.freeaddrinfo
mov dword [esp + 0x1c], 0x10002660
je 0x10007648
mov eax, dword [0x1002d24c]
jmp 0x100077b1
push ebx
push ebp
lea eax, [esp + 0x134]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100077a0
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ws2_32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100076e7
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x1000775f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x134]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wship6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, eax
test esi, esi
je 0x100077a0
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x1000775f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100077a0
mov ecx, dword [0x100201f0]
xor ebp, ebp
test ecx, ecx
jle 0x1000778a
lea edi, [esp + 0x14]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebx
test eax, eax
mov dword [edi], eax
je 0x10007756
mov ecx, dword [0x100201f0]
inc ebp
add edi, 8
cmp ebp, ecx
jl 0x1000776f
xor eax, eax
test ecx, ecx
jle 0x100077a0
mov edx, dword [esp + eax*8 + 0x14]
mov dword [eax*8 + 0x1002d24c], edx
inc eax
cmp eax, ecx
jl 0x10007790
mov eax, dword [0x1002d24c]
pop ebp
mov dword [0x10032c28], 1
pop ebx
mov dword [0x10032c38], eax
mov edi, dword [esp + 0x244]
mov ecx, dword [esp + 0x240]
mov edx, dword [esp + 0x23c]
push edi
push ecx
mov ecx, dword [esp + 0x240]
push edx
push ecx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test esi, esi
je 0x10007812
mov eax, dword [esp + 0x248]
test eax, eax
je 0x1000786f
mov edx, dword [esp + 0x24c]
push edx
push eax
push str.getaddrinfo__:
call fcn.100071f0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x22c
ret
mov eax, dword [edi]
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x10007833
cmp ecx, 0x17
je 0x10007833
mov esi, dword [esp + 0x248]
test esi, esi
je 0x1000786f
push str.getaddrinfo__:_socket_type_not_supported
jmp 0x10007859
cmp dword [eax + 8], 1
jne 0x1000787b
mov eax, dword [eax + 0x18]
push eax
call fcn.100073a0
add esp, 4
test eax, eax
jne 0x1000787b
mov esi, dword [esp + 0x248]
test esi, esi
je 0x1000786f
push str.getaddrinfo__:_multicast_addresses_are_not_valid_when_using_TCP_streams
mov edi, dword [esp + 0x250]
push edi
push esi
call fcn.10016898
add esp, 0xc
mov byte [esi + edi - 1], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x22c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x22c
ret