Function at 0x405a10
Capabilities:
Get hostname
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40a920
push eax
mov eax, 0x2018
mov dword fs:[0], esp
call fcn.0040a0f0
push ebx
push esi
push edi
push 1
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 2
call sub.MFC42u.DLL_CString::GetBuffer
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x405a52
xor esi, esi
jmp 0x405a80
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x20], eax
add eax, 3
and al, 0xfc
call fcn.0040a0f0
mov eax, dword [ebp - 0x20]
mov esi, esp
push ebx
push ebx
push eax
push esi
push 0xffffffffffffffff
push edi
push ebx
push ebx
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
push esi
call fcn.00409850
add esp, 0xc
lea ecx, [ebp + 0x10]
mov esi, eax
push 0xffffffffffffffff
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 1
push esi
lea ecx, [ebp - 0x18]
call fcn.004098f0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x422]
mov word [ebp - 0x424], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1822]
mov word [ebp - 0x1824], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1c22]
mov word [ebp - 0x1c24], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x2022]
mov word [ebp - 0x2024], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1422]
mov word [ebp - 0x1424], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x822]
mov word [ebp - 0x824], bx
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1424]
push edx
push eax
mov byte [ebp - 4], 3
call esi
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x824]
push ecx
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 0x10
lea eax, [ebp - 0x1c24]
push 0x200
push eax
push str.USERDOMAIN
call edi
lea ecx, [ebp - 0x2024]
push 0x200
push ecx
push str.USERNAME
call edi
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x424]
push edx
push eax
mov dword [ebp - 0x24], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0x18]
push str.LOGIN2
push ecx
call fcn.004096d0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xc22]
mov word [ebp - 0xc24], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea edx, [ebp - 0xc24]
push 0x200
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.00409560
lea ecx, [ebp - 0xc24]
push str.Continue
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x20
test eax, eax
jne 0x405db9
lea edx, [ebp - 0x424]
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.004096d0
lea ecx, [ebp + 0x14]
push ebx
push ecx
call fcn.00401a70
mov eax, dword [eax]
lea edx, [ebp - 0x1824]
push eax
push edx
call esi
add esp, 0x18
lea ecx, [ebp + 0x14]
call fcn.00409d30
lea eax, [ebp - 0x1824]
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.004096d0
lea edx, [ebp - 0x1424]
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.004096d0
lea ecx, [ebp - 0x824]
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.004096d0
push 0x5efc
call sub.MFC42u.DLL_operatornew
mov esi, eax
mov ecx, 0x17bf
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 0xff
lea edi, [ebp - 0x1022]
mov word [ebp - 0x1024], bx
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1024]
push 0x200
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.00409560
lea edx, [esi + 0x80]
push 4
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.00409750
push 0x80
lea ecx, [ebp - 0x18]
push esi
push ecx
call fcn.00409750
add esp, 0x44
lea edx, [esi + 0x84]
lea eax, [ebp - 0x18]
push 4
push edx
push eax
call fcn.00409750
lea ecx, [esi + 0x88]
push 4
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.00409750
lea eax, [esi + 0x8c]
push 4
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.00409750
lea edx, [esi + 0x90]
push 4
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.00409750
lea ecx, [ebp - 0x1c]
push 4
lea edx, [ebp - 0x18]
push ecx
push edx
mov dword [ebp - 0x1c], ebx
call fcn.00409750
mov eax, dword [ebp - 0x1c]
add esp, 0x3c
mov dword [esi + 0x94], eax
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, ebx
jle 0x405d61
lea ecx, [esi + 0x98]
mov dword [ebp + 0x14], ecx
lea edx, [ebp - 0x20]
push 4
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.00409750
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
add esp, 0xc
inc edi
mov dword [eax], ecx
add eax, 4
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jl 0x405d39
lea edx, [ebp - 0x1024]
push 0x40e37c
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x405db0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00409910
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00409d30
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00409d30
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00409d30
mov eax, esi
jmp 0x405ded
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00409910
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00409d30
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00409d30
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00409d30
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x2030]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret