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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x518764]
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.004a7f20
push 0x105
lea eax, [ebp - 0x420]
mov dword [ebp - 0x628], 0x101
push ebx
push eax
call fcn.004a7f20
push 0x105
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004a7f20
push 0x105
lea eax, [ebp - 0x318]
push ebx
push eax
call fcn.004a7f20
add esp, 0x30
mov dword [ebp - 0x630], 0x105
cmp dword [ebp + 0xc], 4
mov dword [ebp - 0x624], ebx
je 0x42906f
cmp dword [ebp + 0xc], 8
jne 0x429168
cmp dword [esi + 0x14], 1
jne 0x428f71
cmp dword [esi + 0xc], ebx
jne 0x428f71
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 0x428f71
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428f66
sub ecx, edx
jne 0x428fa8
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x42905f
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428f96
sub ecx, edx
cmp ecx, 1
jb 0x42905f
lea eax, [ebp - 0x108]
push eax
call fcn.00426c46
mov dword [ebp - 0x62c], eax
pop ecx
test eax, eax
je 0x42901e
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.00418a96
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x62c]
push 1
push 3
push esi
call fcn.00429952
lea eax, [ebp - 0x108]
push eax
call fcn.00426e4c
add esp, 0x24
test eax, eax
je 0x42900b
push str.Unable_to_replace_invalid_characters_in_the_username.
push eax
push 3
jmp 0x429013
push str.Proceeding_with_installation_after_replacing_invalid_characters_in_the_username.
push ebx
push 1
push 3
push esi
call fcn.00429952
add esp, 0x14
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x429027
sub ecx, edx
test ecx, ecx
jle 0x42904b
cmp byte [ebp + ebx - 0x108], 0x2e
jne 0x429046
mov byte [ebp + ebx - 0x108], 0x2d
inc ebx
cmp ebx, ecx
jl 0x429034
lea eax, [ebp - 0x108]
push 0x50
push eax
lea eax, [esi + 0x26c]
jmp 0x42915f
push 0xffffffffffffffe9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x42912a
push ebx
push ebx
push ebx
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0041ed21
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4290a8
cmp dword [ebp - 0x624], 3
je 0x429150
cmp dword [ebp - 0x624], 4
je 0x429150
mov ax, word [0x4e293c]
mov word [ebp - 0x318], ax
mov al, byte [0x4e293e]
mov byte [ebp - 0x316], al
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x420]
mov byte [ebp - 0x210], bl
push eax
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 0x4290e3
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.004b6f10
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
call fcn.004283e5
mov edi, eax
add esp, 0x18
test edi, edi
je 0x429130
push str.Error_occurred_in_the_Automatic_Domain_Name_detection.
push edi
push 2
push 1
jmp 0x429145
cmp byte [ebp - 0x210], bl
jne 0x429150
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.00429952
add esp, 0x14
jmp 0x429168
lea eax, [ebp - 0x210]
push 0x51
push eax
lea eax, [esi + 0x2c4]
push eax
call fcn.004af750
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a50d6
leave
ret