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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4793fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov byte [esp + 0x220], bl
mov ecx, 0x7f
lea edi, [esp + 0x221]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x120], bl
mov ecx, 0x3f
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x20], bl
mov ecx, 0x3f
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x124]
push ecx
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
cmp eax, ebx
mov dword [esp + 0x42c], ebx
je 0x4137f2
mov ecx, eax
call fcn.0041c420
mov dword [esp + 0x18], eax
jmp 0x4137f6
mov dword [esp + 0x18], ebx
sub esp, 0x1c
mov ecx, esp
lea eax, [esp + 0x13c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x448], 0xffffffff
mov dword [esp + 0x30], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x413821
sub eax, esi
push eax
lea edx, [esp + 0x140]
push edx
call fcn.0040b170
mov ecx, dword [esp + 0x34]
call fcn.0041c7e0
push ebx
push 0x26
lea eax, [esp + 0x228]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 0x220]
dec edi
jmp 0x413860
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x413860
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 + 0x220]
mov word [edi + 0x10], dx
push 0x47e410
push ecx
mov byte [edi + 0x12], al
call fcn.0044dd88
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0x14], esi
jne 0x4138d4
or eax, 0xffffffff
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
lea edx, [esp + 0x24]
xor eax, eax
push 0x100
mov ecx, 0x40
lea edi, [esp + 0x28]
push edx
rep stosd dword es:[edi], eax
call fcn.0044ef88
add esp, 0xc
test eax, eax
je 0x413ae2
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413903
sub eax, edx
mov cl, byte [esp + eax + 0x1f]
cmp cl, 0xa
mov dword [esp + 0x10], eax
lea eax, [esp + eax + 0x1f]
jne 0x41391f
mov byte [eax], bl
mov edx, dword [ebp + 8]
lea eax, [esp + 0x20]
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x413930
push esi
lea edx, [esp + 0x24]
xor eax, eax
push 0x100
mov ecx, 0x40
lea edi, [esp + 0x28]
push edx
rep stosd dword es:[edi], eax
call fcn.0044ef88
add esp, 0xc
test eax, eax
je 0x413ae2
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413970
sub eax, edx
mov cl, byte [esp + eax + 0x1f]
cmp cl, 0xa
mov dword [esp + 0x10], eax
lea eax, [esp + eax + 0x1f]
jne 0x41398c
mov byte [eax], bl
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x20]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x413997
push esi
lea edx, [esp + 0x24]
xor eax, eax
push 0x100
mov ecx, 0x40
lea edi, [esp + 0x28]
push edx
rep stosd dword es:[edi], eax
call fcn.0044ef88
add esp, 0xc
test eax, eax
je 0x413ae2
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4139d0
sub eax, edx
mov cl, byte [esp + eax + 0x1f]
cmp cl, 0xa
mov dword [esp + 0x10], eax
lea eax, [esp + eax + 0x1f]
jne 0x4139ec
mov byte [eax], bl
sub esp, 0x1c
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.0040b260
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.0041df10
mov ecx, esi
call fcn.0041c6c0
mov edx, dword [ebp + 0x10]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x413a14
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x24]
push 0x100
push ecx
call fcn.0044ef88
add esp, 0xc
test eax, eax
jne 0x413a69
push edi
call fcn.0044dc7d
add esp, 4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413a70
sub eax, edx
mov cl, byte [esp + eax + 0x1f]
cmp cl, 0xa
mov dword [esp + 0x10], eax
lea eax, [esp + eax + 0x1f]
jne 0x413a8c
mov byte [eax], bl
sub esp, 0x1c
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.0040b260
mov ecx, esi
call fcn.0041df10
mov ecx, esi
call fcn.0041c6c0
mov edx, dword [ebp + 0x14]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x413ab0
mov esi, dword [esp + 0x14]
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x20]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push 0x100
push eax
call fcn.0044ef88
add esp, 0xc
test eax, eax
jne 0x413b05
push esi
call fcn.0044dc7d
add esp, 4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413b10
sub eax, edx
mov cl, byte [esp + eax + 0x1f]
cmp cl, 0xa
mov dword [esp + 0x10], eax
lea eax, [esp + eax + 0x1f]
jne 0x413b2c
mov byte [eax], bl
mov edi, str.Auto1
lea esi, [esp + 0x20]
mov ecx, 7
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x413b45
sbb eax, eax
sbb eax, 0xffffffff
mov edx, dword [ebp + 0x18]
xor ecx, ecx
cmp eax, ebx
mov eax, dword [esp + 0x14]
sete cl
push eax
mov dword [edx], ecx
call fcn.0044dc7d
mov esi, dword [esp + 0x1c]
add esp, 4
cmp esi, ebx
je 0x413b76
mov ecx, esi
call fcn.0041c430
push esi
call fcn.0044e8f9
add esp, 4
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret