Function at 0x10013000
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ce61
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x10028008]
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, ecx
mov dword [ebp - 0x47c], esi
push 2
push 0x1001f9ec
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
call fcn.100061e0
mov dword [ebp - 4], 0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x47c], esp
mov dword [ebp - 0x428], 0x104
mov dword [ebp - 0x42c], 0x104
push 0xc
push str.GetUserNameW
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.10001de0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0xc
push 0x1001f958
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.100061e0
mov byte [ebp - 4], 1
call fcn.10013c10
add esp, 0x30
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
call eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x424]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x464], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x460], 0
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013140
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x474]
call fcn.100061e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x45c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013190
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x45c]
call fcn.100061e0
push 0
push 0x1001ea80
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 4
call fcn.10001cd0
cmp dword [ebp - 0x448], 8
lea eax, [ebp - 0x45c]
push dword [ebp - 0x44c]
cmovae eax, dword [ebp - 0x45c]
lea ecx, [ebp - 0x444]
push eax
call fcn.100055d0
push 1
push 0x1001f1f4
lea ecx, [ebp - 0x444]
call fcn.100055d0
cmp dword [ebp - 0x460], 8
lea eax, [ebp - 0x474]
push dword [ebp - 0x464]
cmovae eax, dword [ebp - 0x474]
lea ecx, [ebp - 0x444]
push eax
call fcn.100055d0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x448]
cmp ecx, 8
jb 0x10013266
mov edx, dword [ebp - 0x45c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001325c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001329c
push ecx
push edx
call fcn.1001a58a
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x460]
cmp ecx, 8
jb 0x100132ba
mov edx, dword [ebp - 0x474]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100132a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100132a2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001a58a
add esp, 8
jmp 0x100132ba
lea edx, [ebp - 0x444]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10013760
mov ecx, dword [ebp - 0x430]
cmp ecx, 8
jb 0x10013310
mov edx, dword [ebp - 0x444]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013306
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10013306
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001a58a
add esp, 8
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.1001a029
mov esp, ebp
pop ebp
ret