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

Disassembly:
sub esp, 0x6f8
mov eax, dword [0x5a1f2c]
push ebx
push esi
mov esi, dword [esp + 0x704]
push edi
mov dword [esp + 0x14], eax
mov ecx, 0x95
xor eax, eax
lea edi, [esp + 0x4b0]
rep stosd dword es:[edi], eax
mov ecx, 0x126
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x110]
mov eax, dword [esi + 8]
test eax, eax
mov ebx, dword [ecx + 0x5a74]
mov dword [esp + 0x10], ebx
je 0x416897
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x6f8
ret
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0xffffffffffffff96
push 0x65c
push edx
call edi
push 0
lea eax, [esp + 0x4b8]
push 0x250
push eax
mov ecx, ebx
call fcn.004425a0
test eax, eax
jne 0x4168cf
pop edi
pop esi
pop ebx
add esp, 0x6f8
ret
mov eax, dword [esi + 8]
test eax, eax
je 0x4168e2
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x6f8
ret
mov ecx, dword [esi + 0x110]
mov edx, dword [esp + 0x5e0]
mov dword [ecx + 0x69a4], edx
mov eax, dword [esp + 0x5cc]
test eax, eax
je 0x416932
mov eax, dword [esi + 8]
test eax, eax
je 0x416913
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x6f8
ret
mov eax, dword [esi]
push 0
push 0xffffffffffffff94
push 0x65c
push eax
call edi
mov ecx, dword [esi + 0x110]
push 0xffffffffffffffff
push 0xffffffffffffff94
push 1
call fcn.004263f0
mov eax, dword [esi + 8]
test eax, eax
je 0x416945
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x6f8
ret
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x4c0]
push ecx
push 0xffffffffffffffa6
push 0x401
push edx
call edi
mov eax, dword [esi + 0x110]
mov ecx, dword [esp + 0x4bc]
mov dword [eax + 0x66d0], ecx
mov edx, dword [esi + 0x110]
mov eax, dword [esp + 0x5d0]
mov dword [edx + 0x6730], eax
mov ecx, dword [esi + 0x110]
mov edx, dword [esp + 0x5e8]
mov dword [ecx + 0x66e0], edx
mov eax, dword [esi + 0x110]
mov ecx, dword [eax + 0x66e0]
test ecx, ecx
je 0x4169b6
mov ecx, dword [0x5a1f2c]
mov dword [ecx + 0x3c], 1
mov ecx, dword [0x5a1e58]
mov dword [esp + 0x18], 0x113b
call fcn.004477a0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x394], eax
mov eax, dword [esp + 0x4bc]
test eax, eax
je 0x416ab2
mov eax, dword [esp + 0x5ec]
test eax, eax
jne 0x416ab2
mov eax, dword [esi + 0x110]
lea edx, [esp + 0x5d4]
add eax, 0x6774
push edx
push eax
call ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x416a1d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x6f8
ret
mov ecx, dword [esi + 4]
push 0xffffdd48
push 0xffffdd48
push 0x40b
push ecx
call edi
mov eax, dword [0x5a1f2c]
mov edx, dword [eax + 0x88]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 0x8c]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0x44]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 0x48]
mov dword [0x5a1f00], ecx
mov edx, dword [eax + 0x48]
mov eax, dword [esi + 0x110]
mov ecx, dword [esp + 0x5e4]
mov dword [esp + 0x24], edx
mov dword [eax + 0x6e80], ecx
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jle 0x416aaa
mov edi, dword [esp + 0x4b4]
mov eax, edi
cdq
idiv ecx
test edx, edx
je 0x416aaa
mov eax, edi
dec ecx
cdq
idiv ecx
test edx, edx
jne 0x416a9c
mov dword [esp + 0x24], ecx
mov dword [0x5a1f00], ecx
jmp 0x416afb
mov edx, dword [esp + 0x5c4]
mov eax, dword [0x5a1f2c]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 0x8c]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0x44]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x4c]
mov ecx, dword [esp + 0x5c8]
mov dword [esp + 0x28], edx
mov dword [eax + 0x48], ecx
mov eax, dword [esp + 0x5c8]
mov dword [esp + 0x24], eax
mov dword [0x5a1f00], eax
lea edx, [esp + 0xc]
lea eax, [esp + 0x34]
mov edi, 0x104
push edx
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x138]
mov edx, dword [ecx + 0x1c]
push edx
push eax
call ebx
lea ecx, [esp + 0xc]
lea edx, [esp + 0x23c]
push ecx
push edx
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
fld qword [0x5a1f18]
mov ecx, dword [0x5a1f2c]
mov dword [esp + 0x18], 0x113b
fcomp qword [0x544688]
mov eax, dword [ecx + 0x90]
mov dword [esp + 0x340], eax
mov edx, dword [ecx + 0x94]
mov dword [esp + 0x344], edx
fnstsw ax
test ah, 1
je 0x416bc9
mov eax, dword [esi + 0x110]
lea edx, [eax + 0x5854]
mov edi, dword [eax + 0x5854]
mov dword [esp + 0x370], edi
mov edi, dword [edx + 4]
mov dword [esp + 0x374], edi
mov edi, dword [edx + 8]
mov dword [esp + 0x378], edi
mov edx, dword [edx + 0xc]
mov dword [esp + 0x37c], edx
mov edx, dword [eax + 0x5754]
mov dword [esp + 0x368], edx
mov eax, dword [eax + 0x5758]
mov dword [esp + 0x36c], eax
mov edx, dword [ecx + 0x98]
push 0
mov dword [esp + 0x384], edx
mov eax, dword [ecx + 0x50]
mov dword [esp + 0x34c], eax
mov edx, dword [ecx + 0x54]
mov dword [esp + 0x388], edx
mov eax, dword [ecx + 0x58]
mov dword [esp + 0x39c], eax
mov edx, dword [ecx + 0x64]
mov dword [esp + 0x360], edx
mov eax, dword [ecx + 0x68]
mov dword [esp + 0x364], eax
mov ecx, dword [ecx + 0x6c]
lea edx, [esp + 0x1c]
mov dword [esp + 0x368], ecx
mov ecx, dword [esp + 0x14]
push 0x498
push edx
call fcn.00442430
test eax, eax
jne 0x416c35
pop edi
pop esi
pop ebx
add esp, 0x6f8
ret
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
pop edi
pop esi
sete al
pop ebx
add esp, 0x6f8
ret