Function at 0x413b90
Capabilities:
Get common file path
Get hostname
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47941e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
xor eax, eax
push esi
push edi
mov byte [esp + 0x218], 0
mov ecx, 0x7f
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x3f
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x3f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x26
lea eax, [esp + 0x220]
push eax
push 0
mov dword [esp + 0x20], 0x100
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 0x218]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413c23
mov ecx, dword [str.SAGAutoLogin.cfg]
mov edx, dword [0x47e418]
mov eax, dword [0x47e41c]
mov dword [edi], ecx
mov ecx, dword [0x47e420]
mov dword [edi + 4], edx
mov dx, word [0x47e424]
mov dword [edi + 8], eax
mov al, byte [0x47e426]
mov dword [edi + 0xc], ecx
lea ecx, [esp + 0x218]
mov word [edi + 0x10], dx
push 0x47a884
push ecx
mov byte [edi + 0x12], al
call fcn.0044dd88
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x413ca5
push eax
push str.error
push 0x47e428
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
lea esi, [esp + 0x18]
mov ecx, eax
sub esi, eax
lea ecx, [ecx]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x413cc0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413cd0
sub eax, edx
lea edx, [esp + 0x18]
push ebx
push edx
mov byte [esp + eax + 0x20], 0xa
call fcn.0044e0dd
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
add esp, 8
rep stosd dword es:[edi], eax
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x413d08
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413d17
sub eax, edx
mov byte [esp + eax + 0x18], 0xa
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0044e0dd
add esp, 8
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x11c]
push edx
mov dword [esp + 0x18], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x3318
call fcn.0044ea51
add esp, 4
mov dword [esp + 0x14], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x424], esi
je 0x413d75
mov ecx, eax
call fcn.0041c420
mov esi, eax
sub esp, 0x1c
lea eax, [esp + 0x134]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov dword [esp + 0x444], 0xffffffff
call fcn.0040b260
mov ecx, esi
call fcn.0041c7e0
mov edx, dword [ebp + 0x10]
sub esp, 0x1c
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0040b260
mov ecx, esi
call fcn.0041db50
mov ecx, esi
call fcn.0041c6b0
lea edx, [esp + 0x18]
mov edi, edi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x413dd0
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413de1
sub eax, edx
mov byte [esp + eax + 0x18], 0xa
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0044e0dd
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
sub esp, 0x14
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0040b260
mov ecx, esi
call fcn.0041db50
mov ecx, esi
call fcn.0041c6b0
lea ecx, [esp + 0x18]
nop
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x413e30
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413e41
sub eax, edx
mov byte [esp + eax + 0x18], 0xa
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0044e0dd
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
add esp, 8
cmp eax, 1
push ebx
lea edi, [esp + 0x1c]
mov ecx, 0x40
jne 0x413e9d
mov dx, word [0x47e40c]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [str.Auto1]
mov al, byte [0x47e40e]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
mov word [esp + 0x20], dx
mov byte [esp + 0x22], al
push ecx
jmp 0x413ec5
mov edx, dword [str.Auto0]
xor eax, eax
rep stosd dword es:[edi], eax
mov ax, word [0x47e440]
mov cl, byte [0x47e442]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
mov word [esp + 0x20], ax
mov byte [esp + 0x22], cl
push edx
mov byte [esp + 0x26], 0xa
call fcn.0044e0dd
add esp, 8
push ebx
mov dword [esp + 0x14], eax
call fcn.0044dc7d
add esp, 4
test esi, esi
je 0x413ef3
mov ecx, esi
call fcn.0041c430
push esi
call fcn.0044e8f9
add esp, 4
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret