Function at 0x42fd70
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3d00
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x51f620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
push ebx
push 3
mov dword [ebp - 0x14], ebx
call esi
mov edi, dword [ebp - 0x14]
cmp edi, ebx
jbe 0x42fe9a
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00440fb0
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x30]
sar edx, 1
jne 0x42fdd2
call fcn.0046de02
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
push ecx
push 3
call esi
test eax, eax
je 0x42fe6e
mov eax, dword [ebp - 0x30]
mov esi, eax
cmp eax, dword [ebp - 0x2c]
jbe 0x42fdf8
call fcn.0046de02
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], esi
mov edi, eax
cmp eax, dword [ebp - 0x2c]
jbe 0x42fe0d
call fcn.0046de02
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x1c]
call fcn.00441020
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
push edx
push eax
mov eax, dword [ebp + 8]
push edi
push esi
push ecx
call fcn.00444490
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x42fe45
push eax
call fcn.0045024c
add esp, 4
mov edx, dword [ebp - 0x3c]
push edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.0045024c
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x42fe85
push eax
call fcn.0045024c
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.0045024c
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov dword [ebp - 0x14], ebx
call esi
mov edi, dword [ebp - 0x14]
cmp edi, ebx
jbe 0x42ff90
lea edx, [ebp - 0x54]
push edx
call fcn.00440fb0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
sar eax, 1
jne 0x42fed4
call fcn.0046de02
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x14]
push ecx
push edx
call esi
test eax, eax
mov eax, dword [ebp - 0x48]
je 0x42ff6e
mov esi, eax
cmp eax, dword [ebp - 0x44]
jbe 0x42fef8
call fcn.0046de02
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
mov edi, eax
cmp eax, dword [ebp - 0x44]
jbe 0x42ff0d
call fcn.0046de02
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
call fcn.00441020
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [ebp - 0x14]
push ecx
push edx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
call fcn.00444490
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x42ff45
push eax
call fcn.0045024c
add esp, 4
mov ecx, dword [ebp - 0x54]
push ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.0045024c
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ebx
je 0x42ff7b
push eax
call fcn.0045024c
add esp, 4
mov edx, dword [ebp - 0x54]
push edx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.0045024c
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret