Function at 0x5420f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd33d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x671330]
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 esi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x542151
mov eax, dword [esi]
jmp 0x542153
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 0x24]
push eax
push ecx
push 1
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], ecx
call ebx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x54220d
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x20], xmm0
lea ecx, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00540420
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push edi
push 1
mov byte [ebp - 4], 2
call ebx
test eax, eax
je 0x5421f2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x5421f2
push eax
lea ecx, [ebp - 0x20]
call fcn.00543bd0
mov eax, dword [ebp - 0x1c]
mov ecx, esi
mov edi, dword [ebp - 0x20]
sub eax, edi
sar eax, 1
push eax
push edi
call fcn.0040b190
mov byte [ebp - 4], 1
test edi, edi
je 0x54220d
mov eax, dword [ebp - 0x18]
sub eax, edi
sar eax, 1
push 2
push eax
push edi
call fcn.0040b970
add esp, 0xc
cmp dword [esi + 0x10], 0
jne 0x5422c9
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x24]
push eax
push 0
mov dword [ebp - 0x24], 0
call ebx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x5422bf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x20], xmm0
lea ecx, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00540420
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push edi
mov byte [ebp - 4], 3
call ebx
test eax, eax
je 0x5422a4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x5422a4
push eax
lea ecx, [ebp - 0x20]
call fcn.00543bd0
mov eax, dword [ebp - 0x1c]
mov ecx, esi
mov edi, dword [ebp - 0x20]
sub eax, edi
sar eax, 1
push eax
push edi
call fcn.0040b190
mov byte [ebp - 4], 1
test edi, edi
je 0x5422bf
mov eax, dword [ebp - 0x18]
sub eax, edi
sar eax, 1
push 2
push eax
push edi
call fcn.0040b970
add esp, 0xc
cmp dword [esi + 0x10], 0
je 0x54236f
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
push 1
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_]
mov dword [ebp - 0x18], eax
sub esp, 0xc
mov byte [ebp - 4], 5
mov eax, esp
lea ecx, [ebp - 0x1c]
push ecx
push 0x5f875b
push fcn.0040f400
push eax
call fcn.0053f840
mov ecx, dword [esi + 0x14]
add esp, 0x10
cmp ecx, 8
jb 0x54230c
mov edx, dword [esi]
jmp 0x54230e
mov edx, esi
cmp ecx, 8
jb 0x542317
mov edi, dword [esi]
jmp 0x542319
mov edi, esi
mov eax, dword [esi + 0x10]
lea eax, [edi + eax*2]
cmp ecx, 8
jb 0x542328
mov ecx, dword [esi]
jmp 0x54232a
mov ecx, esi
push edx
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0053f8e0
add esp, 0x20
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x54236f
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x54236f
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x54236f
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.00544286
mov esp, ebp
pop ebp
ret