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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
mov dword [ebp - 0x3c4], ecx
mov dword [ebp - 0x3c0], 0
mov dword [ebp - 4], 1
push 0
push 0x53db20
lea ecx, [ebp + 0xc]
call fcn.0041ec90
test eax, eax
jl 0x436bc3
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x244], esp
push 0x53db1c
call fcn.004025c0
mov dword [ebp - 0x3c8], eax
mov eax, dword [ebp - 0x3c8]
mov dword [ebp - 0x3cc], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00459cf0
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0041f550
mov dword [ebp - 0x3d0], eax
mov ecx, dword [ebp - 0x3d0]
mov dword [ebp - 0x3d4], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3d4]
call fcn.00459cf0
push eax
lea ecx, [ebp - 0x268]
call fcn.004025c0
mov dword [ebp - 0x3d8], eax
mov edx, dword [ebp - 0x3d8]
mov dword [ebp - 0x3dc], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3dc]
call fcn.00419640
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x248], esp
push eax
call fcn.004025c0
mov dword [ebp - 0x3e0], eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x3e4], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x228]
push ecx
mov byte [ebp - 4], 7
call fcn.00411030
add esp, 0x44
mov dword [ebp - 0x3e8], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x268]
call fcn.00401ef0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2ec]
call fcn.0041f590
push fcn.004e6d30
sub esp, 0xc
mov edx, esp
mov dword [ebp - 0x2f0], esp
push edx
push 1
lea ecx, [ebp - 0x228]
call fcn.0043a230
mov ecx, eax
call fcn.0041f0c0
mov dword [ebp - 0x3ec], eax
mov eax, dword [ebp - 0x3ec]
mov dword [ebp - 0x3f0], eax
mov byte [ebp - 4], 0xb
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x2f4], esp
push ecx
push 1
lea ecx, [ebp - 0x228]
call fcn.0043a230
mov ecx, eax
call fcn.0041f120
mov dword [ebp - 0x3f4], eax
mov edx, dword [ebp - 0x3f4]
mov dword [ebp - 0x3f8], edx
mov byte [ebp - 4], 0xc
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x2f8], esp
push eax
push 1
lea ecx, [ebp - 0x228]
call fcn.0043a230
mov ecx, eax
call fcn.0041f0c0
mov dword [ebp - 0x3fc], eax
mov ecx, dword [ebp - 0x3fc]
mov dword [ebp - 0x400], ecx
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x304]
push edx
mov byte [ebp - 4], 0xa
call fcn.0043dea0
add esp, 0x2c
mov dword [ebp - 0x404], eax
lea ecx, [ebp - 0x304]
call fcn.0043b8e0
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.0043a230
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x308], esp
push eax
call fcn.00401e80
mov dword [ebp - 0x408], eax
mov ecx, dword [ebp - 0x408]
mov dword [ebp - 0x40c], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x3c4]
mov eax, dword [edx]
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x3c4]
mov edx, dword [eax + 0x24]
call edx
mov dword [ebp - 0x410], eax
mov eax, dword [ebp - 0x410]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x436bb4
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.0041baf0
mov byte [ebp - 4], 0xf
push str.PROGRAMFILES
push 1
lea ecx, [ebp - 0x228]
call fcn.0043a230
push eax
call fcn.0043de80
add esp, 8
movzx edx, al
test edx, edx
je 0x4369c8
push 0
push 0x53db14
lea ecx, [ebp - 0x22c]
call fcn.0041ec90
test eax, eax
jl 0x4369c8
push 0x536a04
push str._x86_
lea ecx, [ebp - 0x22c]
call fcn.00432470
lea ecx, [ebp - 0x22c]
call fcn.00439b90
jmp 0x436b42
push str.SYSTEMDRIVE
push 1
lea ecx, [ebp - 0x228]
call fcn.0043a230
push eax
call fcn.0043de80
add esp, 8
movzx eax, al
test eax, eax
je 0x436b42
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x30c], esp
push 0x53d7a4
call fcn.004025c0
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 0x414]
mov dword [ebp - 0x418], ecx
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x22c]
call fcn.00459cf0
push eax
lea ecx, [ebp - 0x3b4]
call fcn.0041f550
mov dword [ebp - 0x41c], eax
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x420], edx
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x420]
call fcn.00459cf0
push eax
lea ecx, [ebp - 0x330]
call fcn.004025c0
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x428]
call fcn.00419640
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x310], esp
push eax
call fcn.004025c0
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x430], ecx
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x240]
push edx
mov byte [ebp - 4], 0x15
call fcn.00411030
add esp, 0x44
mov dword [ebp - 0x434], eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x330]
call fcn.00401ef0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x3b4]
call fcn.0041f590
push 0
lea ecx, [ebp - 0x240]
call fcn.0043a230
mov ecx, eax
call fcn.00419640
push eax
lea ecx, [ebp - 0x3b8]
call fcn.004218e0
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x22c]
call fcn.00421ab0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x3b8]
call fcn.00401640
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x240]
call fcn.00412b00
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp + 0xc]
call fcn.00421ab0
push 2
lea ecx, [ebp - 0x228]
call fcn.0043a230
mov ecx, eax
call fcn.00419640
push eax
lea ecx, [ebp - 0x3bc]
call fcn.004218e0
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x444]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00413ae0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3bc]
call fcn.00401640
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x22c]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.00412b00
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.004100e0
mov eax, dword [ebp - 0x3c0]
or eax, 1
mov dword [ebp - 0x3c0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401640
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8