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 [0x406480]
mov dword [ebp + 0x70], eax
jmp 0x401cd4
mov ecx, dword [0x406484]
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 [0x407b50], 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 0x407b20
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 0x407ac0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x70]
add ecx, dword [0x407afc]
mov dword [ebp + 0x70], ecx
mov edx, dword [ebp + 0x70]
shl edx, 1
push edx
push 8
mov eax, dword [0x407aec]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x407b48], eax
mov ecx, dword [0x407b48]
push ecx
lea edx, [ebp + 0x28]
push edx
push str.page
call fcn.00402370
add esp, 0xc
cmp dword [0x407afc], 0
jbe 0x401eb6
mov eax, dword [0x407b4c]
sub eax, dword [0x407afc]
mov dword [0x407b4c], eax
mov ecx, dword [0x407b48]
push ecx
mov edx, dword [0x407b4c]
push edx
push str.ump
call fcn.00402370
add esp, 0xc
mov eax, dword [0x407afc]
push eax
push 0
mov ecx, dword [0x407b4c]
push ecx
call fcn.00401940
add esp, 0xc
mov dword [0x407afc], 0
push 0x407ac0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0x7c], 1
jne 0x401f29
mov edx, dword [0x407b48]
push edx
lea eax, [ebp - 0x18]
push eax
push str.unm
call fcn.00402370
add esp, 0xc
mov ecx, dword [0x407b48]
push ecx
lea edx, [ebp - 0x58]
push edx
push str.cnm
call fcn.00402370
add esp, 0xc
mov eax, dword [0x407b48]
push eax
lea ecx, [ebp - 0x98]
push ecx
push str.query
call fcn.00402370
add esp, 0xc
mov edx, dword [0x407b48]
push edx
lea eax, [ebp + 0x5c]
push eax
push str.spec
call fcn.00402370
add esp, 0xc
mov ecx, dword [0x407b48]
push ecx
lea edx, [ebp + 0x50]
push edx
push str.opt
call fcn.00402370
add esp, 0xc
mov eax, dword [0x407b48]
push eax
mov ecx, dword [ebp + 0x68]
push ecx
push str.view
call fcn.00402370
add esp, 0xc
push str.Machines
push 0x407b00
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [0x407b48]
push edx
push 0x407b00
push str.var
call fcn.00402370
add esp, 0xc
push 0x406470
mov eax, dword [0x407b48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4073d0
mov ecx, dword [0x407b48]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp + 0x68]
push edx
push 0
mov eax, dword [0x407aec]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add ebp, 0x74
mov esp, ebp
pop ebp
ret