Function at 0x416e40
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4851b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
push edi
call fcn.0048050d
mov ebp, dword [eax + 4]
mov al, byte [0x4aadf8]
mov byte [esp + 0x1c], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4a8c20]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x10], ecx
push 0x4a57ec
lea edx, [esp + 0x20]
push 0x4a6efc
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x24c], 0
call fcn.0048079c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 1
call fcn.00471765
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 0
call fcn.0047162c
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x244]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x24]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x4a57ec
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x4a6ef4
and ecx, 3
lea edx, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, ebp
call fcn.0048079c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 2
call fcn.00471765
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 0
call fcn.0047162c
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x20]
push 0x4a6ee4
push ecx
mov ecx, ebp
call fcn.00480730
push 0
lea edx, [esp + 0x20]
push 0x4a6ed8
push edx
mov ecx, ebp
mov dword [ebx + 4], eax
call fcn.00480730
mov dword [ebx + 8], eax
push 1
lea eax, [esp + 0x20]
push 0x4a6ec4
push eax
mov ecx, ebp
call fcn.00480730
test eax, eax
setne cl
push 0
lea edx, [esp + 0x20]
mov byte [ebx + 0x439], cl
push 0x4a6eb4
push edx
mov ecx, ebp
call fcn.00480730
mov dword [ebx + 0xec], eax
push 7
lea eax, [esp + 0x20]
push 0x4a6ea4
push eax
mov ecx, ebp
call fcn.00480730
push 0
lea ecx, [esp + 0x20]
push 0x4a6e94
push ecx
mov ecx, ebp
mov dword [ebx + 0x431], eax
call fcn.00480730
push 0x3e8
lea edx, [esp + 0x20]
push 0x4a6e8c
push edx
mov ecx, ebp
mov dword [ebx + 0x1532], eax
call fcn.00480730
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
fild qword [esp + 0x14]
push 0x80
lea eax, [esp + 0x20]
push 0x4a6e80
push eax
fmul qword [0x48c5f0]
mov ecx, ebp
fstp qword [ebx + 0x1536]
call fcn.00480730
push 1
lea ecx, [esp + 0x20]
push 0x4a6e6c
push ecx
mov ecx, ebp
mov dword [ebx + 0x154a], eax
call fcn.00480730
push 0x28
lea edx, [esp + 0x20]
push 0x4a6e5c
push edx
mov ecx, ebp
mov dword [ebx + 0x153e], eax
call fcn.00480730
mov dword [ebx + 0x1542], eax
push 0
lea eax, [esp + 0x20]
push 0x4a6e4c
push eax
mov ecx, ebp
call fcn.00480730
push 0x3c
lea ecx, [esp + 0x20]
push 0x4a6e38
push ecx
mov ecx, ebp
mov dword [ebx + 0x1546], eax
call fcn.00480730
push 0
lea edx, [esp + 0x20]
push 0x4a6e24
push edx
mov ecx, ebp
mov dword [ebx + 0xf0], eax
call fcn.00480730
mov dword [ebx + 0xf4], eax
push 1
lea eax, [esp + 0x20]
push 0x4a6e18
push eax
mov ecx, ebp
call fcn.00480730
push 0x4aadf8
lea ecx, [esp + 0x20]
push 0x4a6e0c
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, ebp
mov dword [ebx + 0xf8], eax
call fcn.0048079c
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x23c], 3
cmp dword [edi - 8], 2
jge 0x417146
lea eax, [ebx + 0xfc]
push eax
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
mov edi, 0x4a6dfc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [ebx + 0xfc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x417164
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0xfc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0xb
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push 0x4a6df0
push ecx
mov ecx, ebp
call fcn.00480730
push 0
lea edx, [esp + 0x20]
push 0x4a6de4
push edx
mov ecx, ebp
mov dword [ebx + 0x418], eax
call fcn.00480730
mov dword [ebx + 0x41c], eax
push 1
lea eax, [esp + 0x20]
push 0x4a6dd0
push eax
mov ecx, ebp
call fcn.00480730
push 0x28
lea ecx, [esp + 0x20]
push 0x4a6dc0
push ecx
mov ecx, ebp
mov dword [ebx + 0x3ae2], eax
call fcn.00480730
push 1
lea edx, [esp + 0x20]
push 0x4a6db4
push edx
mov ecx, ebp
mov dword [ebx + 0x3ae6], eax
call fcn.00480730
mov dword [ebx + 0x3aea], eax
push 0xfdff
lea eax, [esp + 0x20]
push 0x4a6da8
push eax
mov ecx, ebp
call fcn.00480730
push 1
lea ecx, [esp + 0x20]
push 0x4a6d94
push ecx
mov ecx, ebp
mov dword [ebx + 0x420], eax
call fcn.00480730
push 0x28
lea edx, [esp + 0x20]
push 0x4a6d84
push edx
mov ecx, ebp
mov dword [ebx + 0x3ad6], eax
call fcn.00480730
mov dword [ebx + 0x3ada], eax
push 1
lea eax, [esp + 0x20]
push 0x4a6d78
push eax
mov ecx, ebp
call fcn.00480730
push 1
lea ecx, [esp + 0x20]
push 0x4a6d64
push ecx
mov ecx, ebp
mov dword [ebx + 0x3ade], eax
call fcn.00480730
push 0
lea edx, [esp + 0x20]
push 0x4a6d48
push edx
mov ecx, ebp
mov dword [ebx + 0xc], eax
call fcn.00480730
push 0
mov dword [ebx + 0x10], eax
push 0x4a6d34
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebp
call fcn.0048079c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 4
call fcn.00471765
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 3
call fcn.0047162c
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xf4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x4a6d20
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, ebp
call fcn.0048079c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 5
call fcn.00471765
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 3
call fcn.0047162c
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x4a6d0c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, ebp
call fcn.0048079c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 6
call fcn.00471765
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 3
call fcn.0047162c
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0xffffff40
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
sub eax, ebx
lea edi, [ebx + 0xc0]
mov dword [esp + 0x14], eax
movsx ecx, byte [esp + esi + 0xf5]
movsx edx, byte [esp + esi + 0xf4]
push ecx
push edx
lea eax, [esp + 0x48]
push 0x4a6d04
push eax
call fcn.00449ffa
push 0x10
lea ecx, [esp + 0x54]
push 0
push ecx
call fcn.0044b18c
movsx edx, byte [esp + esi + 0x99]
mov byte [edi - 0x14], al
push edx
movsx eax, byte [esp + esi + 0x9c]
push eax
lea ecx, [esp + 0x64]
push 0x4a6d04
push ecx
call fcn.00449ffa
push 0x10
lea edx, [esp + 0x70]
push 0
push edx
call fcn.0044b18c
movsx ecx, byte [esp + esi + 0xf0]
mov byte [edi], al
lea edx, [esp + 0x78]
movsx eax, byte [esp + esi + 0xf1]
push eax
push ecx
push 0x4a6d04
push edx
call fcn.00449ffa
add esp, 0x48
lea eax, [esp + 0x40]
push 0x10
push 0
push eax
call fcn.0044b18c
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov byte [edi + 0x14], al
inc edi
add ecx, edi
add esi, 3
cmp ecx, 0x10
jl 0x4173b2
push 1
lea edx, [esp + 0x20]
push 0x4a6cec
push edx
mov ecx, ebp
call fcn.00480730
mov dword [ebx + 0x14], eax
push 0xffffff
lea eax, [esp + 0x20]
push 0x4a6cd8
push eax
mov ecx, ebp
call fcn.00480730
push 0xff
lea ecx, [esp + 0x20]
push 0x4a6cbc
push ecx
mov ecx, ebp
mov dword [ebx + 0x18], eax
call fcn.00480730
push 0xffffffffffffffff
lea edx, [esp + 0x20]
push 0x4a6ca4
push edx
mov ecx, ebp
mov dword [ebx + 0x1c], eax
call fcn.00480730
cmp eax, 0xffffffff
mov dword [ebx + 0x20], eax
jne 0x4174df
cmp dword [ebx + 0xc], 1
jne 0x4174d2
mov dword [ebx + 0x20], 0x37
jmp 0x4174df
push 0x37
call fcn.00417f90
add esp, 4
mov dword [ebx + 0x20], eax
push 1
lea eax, [esp + 0x20]
push 0x4a6c90
push eax
mov ecx, ebp
call fcn.00480730
push 1
lea ecx, [esp + 0x20]
push 0x4a6c80
push ecx
mov ecx, ebp
mov dword [ebx + 0x200], eax
call fcn.00480730
push 0
lea edx, [esp + 0x20]
push 0x4a6c74
push edx
mov ecx, ebp
mov dword [ebx + 0x40c], eax
call fcn.00480730
mov dword [ebx + 0x410], eax
mov al, byte [0x4aadf8]
mov byte [esp + 0x130], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x130]
push ecx
push 0
stosw word es:[edi], ax
push 0
push 0x8005
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
lea edx, [esp + 0x130]
lea eax, [esp + 0x1c]
push edx
push 0x4a6c68
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, ebp
call fcn.0048079c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 7
call fcn.00471765
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 3
call fcn.0047162c
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x204]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4a6c48
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x4a6c3c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, ebp
call fcn.0048079c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 8
call fcn.00471765
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 3
call fcn.0047162c
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x308]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffc000
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x4a6c30
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
call fcn.00480730
push 0x80ff
lea edx, [esp + 0x20]
push 0x4a6c24
push edx
mov ecx, ebp
mov dword [ebx + 0xa4], eax
call fcn.00480730
mov dword [ebx + 0xa8], eax
push 0
lea eax, [esp + 0x20]
push 0x4a6c18
push eax
mov ecx, ebp
call fcn.00480730
lea ecx, [esp + 0x3c]
mov dword [ebx + 0x414], eax
mov byte [esp + 0x23c], 0
call fcn.0047162c
lea ecx, [esp + 0x10]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0047162c
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret