Function at 0x610308f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [ebp - 0x40], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], ecx
test eax, eax
mov dword [ebp - 0x4c], eax
jne 0x61030b10
mov edx, dword [ebp - 0x40]
lea edi, [ebp - 0x38]
mov esi, dword [edx + 0x84]
mov dword [esp], esi
call sym.cygwin1.dll__strlen
cld
mov ebx, eax
mov eax, dword [ebp - 0x4c]
mov ecx, 8
cmp ebx, 2
rep stosd dword es:[edi], eax
je 0x61030a9a
lea eax, [ebx + 0x1f]
and eax, 0xfffffff0
call sym.cygwin1.dll__alloca
mov edx, esi
lea ecx, [esp + 0x2b]
and ecx, 0xfffffff0
movzx eax, byte [edx]
mov edi, ecx
test al, al
je 0x61030973
mov esi, esi
lea edi, [edi]
cmp al, 0x2f
je 0x61030a90
mov byte [ecx], al
inc edx
inc ecx
movzx eax, byte [edx]
test al, al
jne 0x61030960
mov byte [ecx], 0
mov eax, 0x1010
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], 1
call sym.cygwin1.dll__alloca
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov edx, str.WNetOpenEnum
mov dword [esp + 4], edx
lea edx, [ebp - 0x38]
add ecx, 0x18
mov dword [esp], 0
cmp ebx, 2
sete al
inc eax
call sym.create_thread_and_wait_int__void__void__unsigned_long__char_const_
test eax, eax
jne 0x61030c58
mov eax, 0x4010
call sym.cygwin1.dll__alloca
mov eax, dword [ebp - 0x44]
lea edi, [esp + 0x2b]
and edi, 0xfffffff0
mov ecx, edi
mov edx, dword [eax + 0x18]
mov eax, str.WnetEnumResource
mov dword [esp + 4], eax
mov eax, 3
mov dword [esp], 0x4000
call sym.create_thread_and_wait_int__void__void__unsigned_long__char_const_
test eax, eax
jne 0x61030bf4
mov edx, dword [ebp - 0x44]
mov eax, 0x5c
inc dword [edx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x14]
mov dword [esp], eax
call sym.cygwin1.dll__strrchr
test eax, eax
je 0x61030c50
inc eax
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x48]
add ebx, 0x14
mov dword [esp], ebx
call sym.cygwin1.dll__strcpy
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x84]
mov dword [esp], eax
call sym.cygwin1.dll__strlen
cmp eax, 2
je 0x61030b9a
mov edx, dword [edi + 0x14]
xor ecx, ecx
mov eax, dword [ebp - 0x44]
call sym.__Z15readdir_get_inoP5__DIRPKcb_12
mov ecx, dword [ebp - 0x48]
cmp edx, 0
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
jbe 0x61030bc6
lea esi, [esi]
lea edi, [edi]
xor ebx, ebx
test byte [0x6110a820], 1
jne 0x61030c0d
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ecx], 0x5c
inc edx
inc ecx
jmp 0x6103096c
sub esp, 0x30
lea eax, [ebp - 0x3c]
lea edi, [esp + 0x2b]
and edi, 0xfffffff0
mov word [edi], 0x5c5c
mov byte [edi + 2], 0
mov dword [ebp - 0x3c], 0x10
mov dword [esp + 4], eax
lea eax, [edi + 2]
mov dword [esp], eax
call sub.KERNEL32.dll_GetComputerNameA
sub esp, 8
test eax, eax
je 0x61030bef
mov dword [ebp - 0x24], edi
mov eax, 0x1010
mov dword [ebp - 0x34], 1
call sym.cygwin1.dll__alloca
mov ecx, dword [ebp - 0x44]
mov eax, str.WNetOpenEnum
mov dword [esp], 0
lea edx, [ebp - 0x38]
mov dword [esp + 4], eax
add ecx, 0x18
mov eax, 2
call sym.create_thread_and_wait_int__void__void__unsigned_long__char_const_
test eax, eax
jne 0x61030c58
mov eax, 0x4010
call sym.cygwin1.dll__alloca
mov ecx, dword [ebp - 0x44]
lea edi, [esp + 0x2b]
mov eax, str.WnetEnumResource
and edi, 0xfffffff0
mov edx, dword [ecx + 0x18]
mov ecx, edi
mov dword [esp + 4], eax
mov eax, 3
mov dword [esp], 0x4000
call sym.create_thread_and_wait_int__void__void__unsigned_long__char_const_
test eax, eax
jne 0x61030bf4
mov eax, dword [ebp - 0x44]
inc dword [eax + 0xc]
mov eax, 0x5c
mov dword [esp + 4], eax
mov eax, dword [edi + 0x14]
mov dword [esp], eax
call sym.cygwin1.dll__strrchr
test eax, eax
je 0x61030c50
inc eax
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x48]
add ebx, 0x14
mov dword [esp], ebx
call sym.cygwin1.dll__strcpy
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x84]
mov dword [esp], eax
call sym.cygwin1.dll__strlen
cmp eax, 2
jne 0x61030a43
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ecx + 0x18]
mov edi, edx
or edi, eax
je 0x61030c70
mov dword [esp], ebx
call sym.__Z14hash_path_nameyPKc_12
mov ecx, dword [ebp - 0x48]
sub esp, 4
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
jmp 0x61030a70
cmp eax, 0xffffffff
ja 0x61030a70
mov eax, dword [edi + 0x14]
xor edx, edx
mov dword [esp], eax
xor eax, eax
call sym.__Z14hash_path_nameyPKc_12
mov edi, dword [ebp - 0x48]
sub esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], edx
jmp 0x61030a70
call sub.KERNEL32.dll_GetLastError
mov edx, 0xd
call sym.__Z23geterrno_from_win_errormi_8
mov ebx, eax
test byte [0x6110a820], 1
je 0x61030a7f
mov edi, dword [ebp - 0x48]
mov esi, 0x6111ee64
mov ecx, str.virtual_int_fhandler_netdrive::readdir_DIR__dirent_
mov edx, 0x10
mov dword [esp + 0x18], edi
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x14]
jmp 0x61030b6e
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x18], 0xffffffff
mov edx, 0xd
call sym.__Z23geterrno_from_win_errormi_8
mov ebx, eax
jmp 0x61030c00
mov eax, dword [ebp - 0x40]
xor edx, edx
add eax, 0x90
mov dword [esp], eax
xor eax, eax
call sym.__Z14hash_path_nameyPKc_12
mov edi, dword [ebp - 0x40]
sub esp, 4
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
jmp 0x61030bad