Function at 0x428a85
Capabilities:
Get common file path
Get hostname
Set current directory

Disassembly:
mov eax, 0x460fd8
call fcn.0042c2e0
sub esp, 0x30
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.0043c566
xor edi, edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.0043c566
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0043c566
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0043c566
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
call fcn.0043ae3a
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [ecx - 8], edi
jne 0x428dd3
mov eax, dword [esi + 0x14]
cmp dword [eax - 8], edi
jne 0x428dc3
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x105
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.0043caa1
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0043caf0
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0043a983
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0043a8b8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0043c7aa
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0043c6b1
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call ebx
push 0x7018
lea ecx, [ebp - 0x10]
call fcn.0043cc5a
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
push eax
call fcn.0043ac69
add esp, 0xc
lea ecx, [ebp - 0x10]
push 0x7019
call fcn.0043cc5a
push dword [ebp - 0x10]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x24]
push eax
call fcn.0043ae7c
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0043ca89
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0043c6b1
call fcn.0045562c
mov edi, dword [eax + 4]
push str._u._u_a___u._04u_
lea ecx, [ebp - 0x10]
call fcn.0043c7f9
movzx eax, word [edi + 0x196]
push eax
movzx eax, word [edi + 0x194]
push eax
movzx eax, word [edi + 0x192]
push eax
movzx eax, word [edi + 0x190]
push eax
lea eax, [ebp - 0x20]
push dword [ebp - 0x10]
push eax
call fcn.0043ac69
add esp, 0x18
lea ecx, [ebp - 0x18]
push str..Reg
call fcn.0043ca4d
mov eax, dword [esi]
mov edi, 0x7021
push 0
push edi
mov ecx, esi
push dword [ebp - 0x18]
call dword [eax + 0x28]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x428c60
push 0x105
lea ecx, [ebp - 0x14]
call fcn.0043caa1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0043caf0
push dword [ebp - 0x14]
call ebx
mov eax, dword [esi]
push 0
push edi
mov ecx, esi
push dword [ebp - 0x18]
call dword [eax + 0x28]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x428c7f
lea eax, [ebp - 0x14]
lea edi, [esi + 0x14]
push eax
mov ecx, edi
call fcn.0043c7aa
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0043ca89
xor edi, edi
cmp dword [ebp - 0x1c], edi
je 0x428d7f
lea ecx, [ebp + 8]
call fcn.0043c566
mov eax, dword [esi]
push 2
push edi
mov ecx, esi
mov byte [ebp - 4], 6
mov dword [esi + 0x18], 1
call dword [eax + 0x30]
cmp eax, edi
jne 0x428cd9
push str.REGEDIT4_n_n
lea ecx, [ebp + 8]
call fcn.0043c7f9
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x5c]
push 0x701a
lea ecx, [ebp + 8]
call fcn.0043cc5a
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x5c]
mov edi, 0x47ae1c
lea ecx, [ebp + 8]
push edi
call fcn.0043c7f9
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x5c]
push 0x701b
lea ecx, [ebp - 0x10]
call fcn.0043cc5a
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push eax
call fcn.0043ac69
add esp, 0x10
lea ecx, [ebp + 8]
push 0x47a9dc
call fcn.0043ca4d
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x5c]
push 0x701c
lea ecx, [ebp - 0x10]
call fcn.0043cc5a
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push eax
call fcn.0043ae7c
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.0043c7aa
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.0043c6b1
push edi
lea ecx, [ebp + 8]
call fcn.0043ca4d
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x5c]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0043c6b1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0043c6b1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0043c6b1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0043c6b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043c6b1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
mov edx, dword [esi]
push edi
push 0x7021
push eax
mov ecx, esi
call dword [edx + 0x28]
jmp 0x428ded
lea ebx, [esi + 0x14]
push eax
mov ecx, ebx
call fcn.0043c7aa
mov eax, dword [esi]
push edi
push 0x7021
mov ecx, esi
push dword [ebx]
call dword [eax + 0x28]
mov dword [ebp - 0x1c], eax
jmp 0x428c81