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

Disassembly:
mov eax, 0x46645e
call fcn.00465ac0
sub esp, 0x2d4
mov eax, ecx
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x20], ebx
mov ecx, dword [eax]
add eax, 4
push edi
mov dword [ebp - 0x90], ecx
lea ecx, [ebp - 0x58]
push eax
call fcn.0041226f
and dword [ebp - 4], ebx
mov esi, 0x485e90
cmp dword [0x485ea4], 0x10
cmovae esi, dword [0x485e90]
call fcn.00433f77
mov edx, esi
mov ecx, eax
call fcn.00433ad6
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x41124f
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x58]
sub eax, esi
push 0x7c
cdq
pop ecx
idiv ecx
and dword [ebp - 0x98], ebx
test eax, eax
je 0x411248
and dword [ebp - 0x1c], ebx
push ecx
pop edi
push 0x208
lea eax, [ebp - 0x2e0]
push 0
push eax
call fcn.00440e40
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push 0
push dword [eax + esi + 0x18]
lea eax, [ebp - 0x2e0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
and dword [ebp - 0x70], 0
lea ecx, [ebp - 0x70]
and dword [ebp - 0x60], 0
mov esi, eax
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x2e0]
push eax
call fcn.00413198
mov byte [ebp - 4], 1
test esi, esi
je 0x411216
push 4
call fcn.00444a12
mov edi, eax
pop ecx
test edi, edi
je 0x411213
mov eax, dword [ebp - 0x58]
mov esi, dword [ebp - 0x1c]
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x410b70
mov eax, dword [eax]
mov dword [edi], eax
test eax, eax
je 0x411213
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x70]
add eax, 0x1c
add eax, esi
push eax
call fcn.00413265
mov eax, dword [ebp - 0x58]
mov edx, 0x477528
add eax, esi
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0041410b
push ecx
test al, al
je 0x411030
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00413ab7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
or ebx, 1
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x20], ebx
call fcn.0040c40c
test al, al
je 0x410c06
push ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00413ab7
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xd8]
or ebx, 2
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x20], ebx
call fcn.0040c468
mov byte [ebp - 0x15], 1
test al, al
jne 0x410c0a
mov byte [ebp - 0x15], 0
test bl, 2
je 0x410c20
and ebx, 0xfffffffd
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x74], ebx
call fcn.0041314d
mov dword [ebp - 4], 1
test bl, 1
je 0x410c3d
and ebx, 0xfffffffe
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x74], ebx
call fcn.0041314d
cmp byte [ebp - 0x15], 0
je 0x411213
push ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00413ab7
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xb0]
call fcn.0040be00
lea ecx, [ebp - 0x8c]
call fcn.0041314d
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040d0c9
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0xa0]
and dword [ebp - 0xa0], 0
and dword [ebp - 0x9c], 0
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040d0c9
mov ecx, dword [ebp - 0xbc]
xorps xmm0, xmm0
movlpd qword [ebp - 0xb8], xmm0
and dword [ebp - 0xb8], 0
and dword [ebp - 0xb4], 0
test ecx, ecx
je 0x410ced
call fcn.0040a717
mov byte [ebp - 4], 8
test esi, esi
je 0x41100a
mov ebx, dword [ebp - 0x24]
mov ecx, esi
call fcn.0040ba55
test al, al
je 0x410fe6
lea eax, [esi + 0x20]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x20], eax
push ecx
mov ecx, eax
call fcn.0040b189
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
jb 0x410d31
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x58]
xor edx, edx
mov esi, dword [ebp - 0x1c]
add eax, 0x34
push ecx
push ebx
push edi
sub esp, 0x18
add eax, esi
mov ecx, esp
push eax
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
call fcn.00413406
mov ecx, dword [ebp - 0x10]
mov edx, 0x40f71e
call fcn.0040ccd1
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.0041314d
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x8c]
push eax
call fcn.0040b189
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x410d94
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x58]
xor edx, edx
push ecx
push ebx
push edi
sub esp, 0x18
add eax, 0x64
mov ecx, esp
add eax, esi
push eax
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
call fcn.00413406
mov ecx, dword [ebp - 0x10]
mov edx, 0x40dbf3
call fcn.0040ccd1
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.0041314d
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x8c]
push eax
call fcn.0040b189
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x410df4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x58]
xor edx, edx
push ecx
push ebx
push edi
sub esp, 0x18
add eax, 0x64
mov ecx, esp
add eax, esi
push eax
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
call fcn.00413406
mov ecx, dword [ebp - 0x10]
mov edx, 0x40d4dc
call fcn.0040ccd1
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.0041314d
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x8c]
push eax
call fcn.0040b189
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
jb 0x410e54
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x58]
xor edx, edx
push ecx
push ebx
push edi
sub esp, 0x18
add eax, 0x4c
mov ecx, esp
add eax, esi
push eax
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
call fcn.00413406
mov ecx, dword [ebp - 0x10]
mov edx, 0x40e69f
call fcn.0040ccd1
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.0041314d
cmp dword [ebp - 0x90], 0
mov esi, dword [ebp - 0x20]
je 0x410f9b
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.0040b189
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
jb 0x410ec3
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push ecx
push ebx
push edi
mov dl, 0x40
mov dword [ebp - 0x2d], 0x33290840
mov dword [ebp - 0x29], 0x39322f34
xor ecx, ecx
mov byte [ebp - 0x25], 0
xor byte [ebp + ecx - 0x2c], dl
inc ecx
cmp ecx, 7
jae 0x410eeb
mov dl, byte [ebp - 0x2d]
jmp 0x410edc
sub esp, 0x18
mov byte [ebp - 0x25], 0
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00412991
mov ecx, dword [ebp - 0x10]
mov edx, 0x41038a
call fcn.0040ccd1
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.0041314d
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.0040b189
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 8
jb 0x410f3c
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push ecx
push ebx
push edi
mov dl, 0x35
mov dword [ebp - 0x41], 0x465c7d35
mov dword [ebp - 0x3d], 0x4c475a41
xor ecx, ecx
mov word [ebp - 0x39], 0x1f1b
mov byte [ebp - 0x37], 0
xor byte [ebp + ecx - 0x40], dl
inc ecx
cmp ecx, 9
jae 0x410f6a
mov dl, byte [ebp - 0x41]
jmp 0x410f5b
sub esp, 0x18
mov byte [ebp - 0x37], 0
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00412991
mov ecx, dword [ebp - 0x10]
mov edx, 0x41038a
call fcn.0040ccd1
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.0041314d
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.0040b189
mov esi, eax
mov byte [ebp - 4], 0xf
cmp dword [esi + 0x14], 8
jb 0x410fb7
mov esi, dword [esi]
mov eax, dword [ebp - 0x94]
sub esp, 0xc
add eax, 0x10
mov ecx, esp
push eax
call fcn.004121ba
mov edx, edi
mov ecx, esi
call fcn.0040d0f1
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.0041314d
lea ecx, [ebp - 0xa8]
call fcn.0040be48
mov esi, dword [ebp - 0xa8]
test esi, esi
jne 0x410cfc
mov eax, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0x74]
jmp 0x41100d
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x411018
mov ecx, eax
call fcn.0040a717
mov ecx, dword [ebp - 0xac]
test ecx, ecx
je 0x411213
call fcn.0040a717
jmp 0x411213
cmp dword [ebp - 0x5c], 8
lea esi, [ebp - 0x70]
push dword [ebp - 0x24]
cmovae esi, dword [ebp - 0x70]
xor eax, eax
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, 0x34
push eax
call fcn.00413406
mov edx, 0x40f71e
mov ecx, esi
call fcn.0040ccd1
cmp dword [ebp - 0x5c], 8
lea esi, [ebp - 0x70]
mov eax, dword [ebp - 0x58]
cmovae esi, dword [ebp - 0x70]
add esp, 0x20
xor edx, edx
push dword [ebp - 0x24]
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x1c]
add edx, 0x64
add eax, edx
push eax
call fcn.00413406
mov edx, 0x40dbf3
mov ecx, esi
call fcn.0040ccd1
cmp dword [ebp - 0x5c], 8
lea esi, [ebp - 0x70]
mov eax, dword [ebp - 0x58]
cmovae esi, dword [ebp - 0x70]
add esp, 0x20
xor edx, edx
push dword [ebp - 0x24]
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x1c]
add edx, 0x64
add eax, edx
push eax
call fcn.00413406
mov edx, 0x40d4dc
mov ecx, esi
call fcn.0040ccd1
cmp dword [ebp - 0x5c], 8
lea esi, [ebp - 0x70]
mov eax, dword [ebp - 0x58]
cmovae esi, dword [ebp - 0x70]
add esp, 0x20
xor edx, edx
push dword [ebp - 0x24]
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x1c]
add edx, 0x4c
add eax, edx
push eax
call fcn.00413406
mov edx, 0x40e69f
mov ecx, esi
call fcn.0040ccd1
add esp, 0x24
cmp dword [ebp - 0x90], 0
je 0x4111e8
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov esi, dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x70]
xor edx, edx
push ecx
push esi
mov dword [ebp - 0x10], eax
mov cl, 0x4e
push edi
mov dword [ebp - 0x36], 0x3d27064e
mov dword [ebp - 0x32], 0x373c213a
mov byte [ebp - 0x2e], 0
xor byte [ebp + edx - 0x35], cl
inc edx
cmp edx, 7
jae 0x411169
mov cl, byte [ebp - 0x36]
jmp 0x41115a
sub esp, 0x18
mov byte [ebp - 0x2e], 0
lea eax, [ebp - 0x35]
mov ecx, esp
push eax
call fcn.00412991
mov ecx, dword [ebp - 0x10]
mov edx, 0x41038a
call fcn.0040ccd1
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov dl, 0x55
mov dword [ebp - 0x4c], 0x263c1d55
cmovae eax, dword [ebp - 0x70]
add esp, 0x20
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 0x48], 0x2c273a21
mov word [ebp - 0x44], 0x7f7b
push esi
push edi
mov byte [ebp - 0x42], 0
xor byte [ebp + ecx - 0x4b], dl
inc ecx
cmp ecx, 9
jae 0x4111c6
mov dl, byte [ebp - 0x4c]
jmp 0x4111b7
sub esp, 0x18
mov byte [ebp - 0x42], 0
lea eax, [ebp - 0x4b]
mov ecx, esp
push eax
call fcn.00412991
mov ecx, dword [ebp - 0x10]
mov edx, 0x41038a
call fcn.0040ccd1
add esp, 0x24
cmp dword [ebp - 0x5c], 8
lea esi, [ebp - 0x70]
mov eax, dword [ebp - 0x94]
cmovae esi, dword [ebp - 0x70]
sub esp, 0xc
add eax, 0x10
mov ecx, esp
push eax
call fcn.004121ba
mov edx, edi
mov ecx, esi
call fcn.0040d0f1
add esp, 0xc
push 0x7c
pop edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.0041314d
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x58]
sub eax, esi
cdq
idiv edi
mov ecx, dword [ebp - 0x98]
add dword [ebp - 0x1c], edi
inc ecx
mov dword [ebp - 0x98], ecx
cmp ecx, eax
jb 0x410aee
mov edi, dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x58]
call fcn.004130d8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret