Function at 0x1015d4f
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa50
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x438]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
test eax, eax
je 0x101601d
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [ebp - 0x438]
push eax
call edi
push dword [esi + 0xc8]
mov edx, eax
mov dword [ebp - 4], edx
call edi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 2]
cmp eax, 0x104
mov dword [ebp - 0x10], eax
ja 0x101601d
push dword [esi + 0xc8]
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0xa50]
push 0x100a890
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x10
push dword [esi + 0xc8]
call edi
push dword [esi + 0xcc]
mov edx, eax
mov dword [ebp - 4], edx
call edi
mov ecx, dword [ebp - 4]
mov edi, 0x104
lea eax, [ecx + eax + 2]
cmp eax, edi
mov dword [ebp - 0x10], eax
ja 0x101601d
push dword [esi + 0xc8]
lea eax, [ebp - 0x848]
push dword [esi + 0xcc]
push 0x100a890
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x438]
push eax
push dword [esi + 0xcc]
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x101601d
mov eax, dword [esi + 0xcc]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push ebx
push eax
push 0x400
push 0xc000044c
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
push 0x2900
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
cmp eax, ebx
je 0x101601d
lea eax, [ebp - 0x230]
push edi
push eax
push 0x5dd
push ebx
call dword [sym.imp.USER32.DLL_LoadStringW]
lea eax, [ebp - 0x230]
push 0x24
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call fcn.0101980b
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp edi, 7
jne 0x1015ec6
mov eax, 0x4de
pop edi
pop esi
pop ebx
leave
ret 4
cmp edi, 6
jne 0x1016027
push 0x7f02
push ebx
call dword [sym.imp.USER32.DLL_LoadCursorW]
mov edi, dword [sym.imp.USER32.DLL_SetCursor]
push eax
call edi
push dword [esi + 0x24]
mov esi, dword [sym.imp.ADVAPI32.DLL_ImpersonateLoggedOnUser]
mov dword [ebp - 0x14], eax
call esi
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0xa50]
push eax
push ebx
push ebx
call dword [sym.imp.PROFMAP.DLL_RemapAndMoveUserW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.DLL_RevertToSelf]
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 4], ebx
jne 0x1016062
cmp dword [ebp - 0xc], 5
jne 0x1015fe8
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push 0x1016099
push ebx
push 0x1f4
push dword [0x1021040]
mov dword [ebp - 0x1c], eax
push eax
call fcn.01005fe1
cmp eax, 1
jne 0x1016027
push 0x7f02
push ebx
call dword [sym.imp.USER32.DLL_LoadCursorW]
push eax
call edi
push dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
call esi
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0xa50]
push eax
push 4
push ebx
call dword [sym.imp.PROFMAP.DLL_RemapAndMoveUserW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.DLL_RevertToSelf]
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0xc], 5
jne 0x1015fe1
lea eax, [ebp - 0x640]
push 0x104
push eax
push 0x5fa
push ebx
call dword [sym.imp.USER32.DLL_LoadStringW]
lea eax, [ebp - 0x230]
push ebx
push eax
lea eax, [ebp - 0x640]
push eax
push ebx
push dword [ebp + 8]
call fcn.0101980b
cmp dword [ebp - 0xc], 5
je 0x1015f32
mov dword [ebp - 0x18], 1
cmp dword [ebp - 4], ebx
jne 0x1016062
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push ebx
push eax
push 0x400
push 0xc000044d
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
push 0x2900
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
cmp eax, ebx
jne 0x1016031
mov eax, 0x4d3
jmp 0x1015ebf
mov eax, 0x4c7
jmp 0x1015ebf
lea eax, [ebp - 0x230]
push 0x30
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call fcn.0101980b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, dword [ebp - 0x18]
neg eax
sbb eax, eax
and al, 0xf4
add eax, 0x4d3
jmp 0x1015ebf
lea eax, [ebp - 0x640]
push 0x104
push eax
push 0x5fb
push ebx
call dword [sym.imp.USER32.DLL_LoadStringW]
lea eax, [ebp - 0x230]
push ebx
push eax
lea eax, [ebp - 0x640]
push eax
push ebx
push dword [ebp + 8]
call fcn.0101980b
xor eax, eax
jmp 0x1015ebf