Function at 0x417850
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], edi
jne 0x41788e
mov eax, 0x80070057
pop edi
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], edi
je 0x417882
cmp dword [edx + 0x20], edi
je 0x417b1a
cmp dword [edx + 0x24], edi
jle 0x417b1a
push ebx
push esi
lea ebx, [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.00417640
mov ebx, dword [ebp - 0xc]
mov esi, eax
test esi, esi
jl 0x417a79
test ebx, ebx
jg 0x4178cd
mov esi, 0xe0010003
jmp 0x417a79
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 4]
push eax
push 0
call esi
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004261ca
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x417908
mov esi, 0x8007000e
jmp 0x417a79
mov ecx, dword [ebp - 4]
lea edx, [ecx + ecx]
push edx
push 0
push eax
call fcn.00427b00
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
call esi
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x24]
push eax
push ecx
call fcn.00412e80
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x417a79
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [ebp - 8]
push edx
push 0
call esi
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004261ca
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41797d
mov esi, 0x8007000e
jmp 0x417a79
mov ecx, dword [ebp - 8]
lea edx, [ecx + ecx]
push edx
push 0
push eax
call fcn.00427b00
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ecx
call esi
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
push ecx
call fcn.00412e80
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x417a79
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, edx
lea esi, [eax + ebx + 4]
mov dword [ebp - 0x2c], esi
inc esi
push esi
call fcn.004261ca
mov edi, eax
add esp, 4
test edi, edi
jne 0x4179e0
mov esi, 0x8007000e
jmp 0x417a79
push esi
push 0
push edi
call fcn.00427b00
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
push edx
push str._s_s_
lea edx, [ecx + eax + 5]
push edx
push edi
call fcn.0042b843
mov eax, edi
add esp, 0x20
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x417a10
sub eax, ecx
mov ecx, dword [ebp - 0x10]
push ebx
push ecx
add eax, edi
push ebx
push eax
call fcn.004275d5
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x20]
push eax
push ecx
push edi
call fcn.00423720
mov esi, eax
add esp, 0x20
test esi, esi
jl 0x417a79
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
push ebx
push eax
call fcn.004237f0
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x417a76
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + ebx + 1]
mov dword [ebp - 0x14], 0
mov dword [ecx], eax
xor esi, esi
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x417a95
push ebx
push 0
push eax
call fcn.00427b00
mov edx, dword [ebp - 0x10]
push edx
call fcn.00427598
add esp, 0x10
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x417aa5
push eax
call fcn.00427598
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x417ab5
push eax
call fcn.00427598
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x417ac5
push eax
call fcn.00427598
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x417ad5
push eax
call fcn.00427598
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x417ae5
push eax
call fcn.00427598
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x417af5
push eax
call fcn.00427598
add esp, 4
test edi, edi
je 0x417b0f
mov eax, dword [ebp - 0x2c]
inc eax
push eax
push 0
push edi
call fcn.00427b00
push edi
call fcn.00427598
add esp, 0x10
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, 0xe0010003
pop edi
mov esp, ebp
pop ebp
ret 8