Function at 0x49ff20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51619b
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 0x470], edi
mov dword [ebp - 0x468], edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x464], 0
mov eax, dword [0x58f3dc]
mov dword [ebp - 0x458], eax
mov dword [ebp - 4], 0
push 0x110
push 0
push edi
call fcn.004b8570
add esp, 0xc
mov byte [ebp - 4], 1
push str.NETAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x464], eax
test eax, eax
je 0x4a01bd
push 0x528480
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x474], eax
push 0x5431c4
push dword [ebp - 0x464]
call esi
test eax, eax
je 0x4a01b6
lea ecx, [ebp - 0x460]
push ecx
push 0x64
push 0
call eax
mov ecx, eax
mov eax, dword [ebp - 0x460]
test ecx, ecx
jne 0x4a019e
test eax, eax
je 0x4a019e
mov edx, dword [eax + 8]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0020
sub ecx, esi
sar ecx, 1
push 0
push 0
push 0x400
lea eax, [ebp - 0x454]
push eax
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x4a00ab
cmp eax, 0x400
jae 0x4a0060
mov byte [ebp + eax - 0x454], 0
jmp 0x4a0064
mov byte [ebp - 0x55], 0
push 0x80
lea eax, [ebp - 0x454]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00488a00
add edi, 0x90
push 0x7e
lea eax, [ebp - 0x454]
push eax
push edi
call fcn.00488a00
add esp, 0x18
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4a0092
mov ax, word [0x568af8]
mov word [edi], ax
mov edi, dword [ebp - 0x470]
mov eax, dword [ebp - 0x460]
mov edx, dword [eax + 4]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a00c0
sub ecx, esi
sar ecx, 1
push 0
push 0
push 0x400
lea eax, [ebp - 0x454]
push eax
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x4a0154
cmp eax, 0x400
jae 0x4a0100
mov byte [ebp + eax - 0x454], 0
jmp 0x4a0104
mov byte [ebp - 0x55], 0
push 0x10
lea eax, [ebp - 0x454]
push eax
push edi
call fcn.00488a00
add esp, 0xc
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a0120
sub ecx, edx
mov eax, 0x7f
sub eax, ecx
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [edi + 0x90]
push eax
call fcn.004c7850
add esp, 0xc
mov esi, 1
mov dword [ebp - 0x45c], esi
jmp 0x4a0180
push str.GetComputerInfo___Character_conversion_failed.
lea eax, [ebp - 0x458]
push eax
call fcn.00489150
add esp, 8
test ebx, ebx
je 0x4a017a
lea eax, [ebp - 0x458]
push eax
mov ecx, ebx
call fcn.00488bf0
mov esi, dword [ebp - 0x45c]
mov eax, dword [ebp - 0x474]
test eax, eax
je 0x4a01e9
push dword [ebp - 0x460]
call eax
mov dword [ebp - 4], 0
jmp 0x4a023b
push eax
push ecx
push str.GetComputerInfo___NetWkstaGetInfo_error___d_0x_p_.
lea eax, [ebp - 0x458]
push eax
call fcn.00489150
add esp, 0x10
jmp 0x4a01d1
push str.GetComputerInfo___Unable_to_get_NETAPI32.DLL_function_pointers.
jmp 0x4a01c2
push str.GetComputerInfo___Unable_to_load_NETAPI32.DLL_library.
lea eax, [ebp - 0x458]
push eax
call fcn.00489150
add esp, 8
test ebx, ebx
je 0x4a01e3
lea eax, [ebp - 0x458]
push eax
mov ecx, ebx
call fcn.00488bf0
mov esi, dword [ebp - 0x45c]
mov dword [ebp - 4], 0
jmp 0x4a023b
mov eax, dword [ebp - 0x464]
test eax, eax
je 0x4a024c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [edi], 0
jne 0x4a02d8
push 0x40
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.004b8570
push 0x110
push 0
push edi
call fcn.004b8570
add esp, 0x18
mov dword [ebp - 0x468], 0x40
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x10
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.00488a00
push 0x80
push edi
lea eax, [edi + 0x90]
push eax
call fcn.00488a00
add esp, 0x18
push str._nUnable_to_get_computer_extended_information.
lea ecx, [ebp - 0x458]
call fcn.00488db0
test ebx, ebx
je 0x4a02d8
mov eax, dword [ebx]
cmp dword [eax - 8], 0
jne 0x4a02d8
lea eax, [ebp - 0x458]
push eax
mov ecx, ebx
call fcn.00488bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x458]
call fcn.00488bc0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret