Function at 0x410d47
Capabilities:
Get hostname
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x44e824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
xor ebx, ebx
push 0x101
push ebx
push eax
mov edi, ebx
call fcn.00414350
push 0x105
lea eax, [ebp - 0x420]
mov dword [ebp - 0x628], 0x101
push ebx
push eax
call fcn.00414350
push 0x105
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00414350
push 0x105
lea eax, [ebp - 0x318]
push ebx
push eax
call fcn.00414350
add esp, 0x30
mov dword [ebp - 0x62c], 0x105
cmp dword [ebp + 0xc], 4
mov dword [ebp - 0x624], ebx
je 0x410f1b
cmp dword [ebp + 0xc], 8
jne 0x41101e
cmp dword [esi + 0x14], 1
jne 0x410e1d
cmp dword [esi + 0xc], ebx
jne 0x410e1d
push 0x101
lea eax, [ebp - 0x108]
push eax
push str.USERNAME
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x628], eax
test eax, eax
je 0x410e1d
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410e12
sub ecx, edx
jne 0x410e54
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x410f0b
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410e42
sub ecx, edx
cmp ecx, 1
jb 0x410f0b
lea eax, [ebp - 0x108]
push eax
call fcn.0040ea7d
mov dword [ebp - 0x630], eax
pop ecx
test eax, eax
je 0x410eca
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x620]
push str._Found_invalid_characters_in_the_username___s__which_will_be_used_for_the_machine_ID.
push eax
call fcn.004011e8
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x630]
push 1
push 3
push esi
call fcn.004117f5
lea eax, [ebp - 0x108]
push eax
call fcn.0040ec85
add esp, 0x24
test eax, eax
je 0x410eb7
push str.Unable_to_replace_invalid_characters_in_the_username.
push eax
push 3
jmp 0x410ebf
push str.Proceeding_with_installation_after_replacing_invalid_characters_in_the_username.
push ebx
push 1
push 3
push esi
call fcn.004117f5
add esp, 0x14
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410ed3
sub ecx, edx
test ecx, ecx
jle 0x410ef7
cmp byte [ebp + ebx - 0x108], 0x2e
jne 0x410ef2
mov byte [ebp + ebx - 0x108], 0x2d
inc ebx
cmp ebx, ecx
jl 0x410ee0
lea eax, [ebp - 0x108]
push 0x50
push eax
lea eax, [esi + 0x26c]
jmp 0x411015
push 0xffffffffffffffe9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x410fe0
push ebx
push ebx
push ebx
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00405d18
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x410f54
cmp dword [ebp - 0x624], 3
je 0x411006
cmp dword [ebp - 0x624], 4
je 0x411006
mov ax, word [0x43d718]
mov word [ebp - 0x318], ax
mov al, byte [0x43d71a]
mov byte [ebp - 0x316], al
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x420]
mov byte [ebp - 0x210], bl
push eax
mov dword [ebp - 0x62c], 0x105
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [ebp - 0x318]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410f99
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.00423480
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
call fcn.00410282
mov edi, eax
add esp, 0x18
test edi, edi
je 0x410fe6
push str.Error_occurred_in_the_Automatic_Domain_Name_detection.
push edi
push 2
push 1
jmp 0x410ffb
cmp byte [ebp - 0x210], bl
jne 0x411006
push 0xfffffffffffffffe
pop edi
push str.Domain_name_could_not_be_found._This_machine_may_not_belong_to_a_domain.
push edi
push 2
push 3
push esi
call fcn.004117f5
add esp, 0x14
jmp 0x41101e
lea eax, [ebp - 0x210]
push 0x51
push eax
lea eax, [esi + 0x2c4]
push eax
call fcn.0041bc30
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e47
mov esp, ebp
pop ebp
ret