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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ac8d
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5340e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
lea ecx, [ebp - 0x284]
call fcn.00408730
mov edx, eax
mov dword [ebp - 4], 0
call fcn.0040f2e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x270]
cmp edx, 8
jb 0x409ca0
mov ecx, dword [ebp - 0x284]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409c96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a100
push edx
push ecx
call fcn.004e54c3
add esp, 8
mov dword [ebp - 0x26c], 0
push 0x35
xor eax, eax
mov dword [ebp - 0x25c], 0
push str.C:Program_FilesGoogleChromeApplicationchrome.exe
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00403ad0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40a105
mov dword [ebp - 0x29c], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], 7
lea edx, [ecx + 2]
mov word [ebp - 0x29c], ax
mov byte [ebp - 4], 2
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d30
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x29c]
call fcn.00403ad0
push str.GoogleChromeUser_Data
lea edx, [ebp - 0x29c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x284]
call fcn.0040ba10
add esp, 4
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x288]
cmp edx, 8
jb 0x409db3
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409da9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a126
push edx
push ecx
call fcn.004e54c3
add esp, 8
xor eax, eax
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 7
mov word [ebp - 0x29c], ax
call fcn.00408820
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x26c]
call fcn.00408850
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x244], 3
mov dword [ebp - 0x240], 0
call fcn.0040f560
mov dword [ebp - 0x23c], 0
push 0x1a
xor eax, eax
mov dword [ebp - 0x22c], 0
push str.http:__localhost:9222_json
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
mov byte [ebp - 4], 6
call fcn.00403ad0
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x254]
call fcn.00408f10
add esp, 4
mov byte [ebp - 4], 9
lea edx, [ebp - 0x254]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x224]
movq qword [ebp - 0x224], xmm0
call fcn.00408ab0
mov byte [ebp - 4], 0xa
mov esi, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x220]
cmp esi, ebx
je 0x409f46
nop dword [eax]
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x409eaa
mov edx, dword [esi]
mov dword [ebp - 0x29c], 0
mov ecx, edx
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0xf
mov byte [ebp - 0x29c], 0
mov byte [ebp - 4], 0xa
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409ed8
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x29c]
call fcn.00403db0
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 0xc
call fcn.004097b0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x288]
cmp edx, 0x10
jb 0x409f3b
mov ecx, dword [ebp - 0x29c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409f31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a100
push edx
push ecx
call fcn.004e54c3
add esp, 8
add esi, 0x18
cmp esi, ebx
jne 0x409ea0
call fcn.00408820
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x409fcf
mov edx, dword [ebp - 0x220]
push ecx
call fcn.0040f8e0
mov ecx, dword [ebp - 0x21c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x224]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x409fa7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a12b
push ecx
push esi
call fcn.004e54c3
add esp, 8
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov edx, dword [ebp - 0x240]
cmp edx, 0x10
jb 0x40a009
mov ecx, dword [ebp - 0x254]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409fff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a12b
push edx
push ecx
call fcn.004e54c3
add esp, 8
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x40a049
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a03f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a12b
push edx
push ecx
call fcn.004e54c3
add esp, 8
mov edx, dword [ebp - 0x270]
xor eax, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
cmp edx, 8
jb 0x40a0a6
mov ecx, dword [ebp - 0x284]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a09c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a12b
push edx
push ecx
call fcn.004e54c3
add esp, 8
mov edx, dword [ebp - 0x258]
cmp edx, 8
jb 0x40a0e2
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a0d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a12b
push edx
push ecx
call fcn.004e54c3
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e56df
mov esp, ebp
pop ebp
ret
call fcn.004ea4df
push str.Failed_to_retrieve_LOCALAPPDATA_path
lea ecx, [ebp - 0x248]
call fcn.00401670
push 0x530fbc
lea eax, [ebp - 0x248]
push eax
call fcn.004e6f12
call fcn.004ea4df
call fcn.004ea4df
int3