Function at 0x401860
Capabilities:
Check os version
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421e49
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x42d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x2f8]
call fcn.00408880
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 4], 0
call fcn.00408740
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 1
call fcn.00408b00
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 2
call fcn.004089c0
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x4018d7
mov edx, dword [esi]
jmp 0x4018d9
mov edx, esi
cmp dword [ebp - 0x2e4], 8
lea ecx, [ebp - 0x2f8]
cmovae ecx, dword [ebp - 0x2f8]
call fcn.00409a10
cmp dword [esi + 0x14], 8
jb 0x4018fa
mov esi, dword [esi]
cmp dword [ebp - 0x29c], 8
lea ecx, [ebp - 0x2b0]
mov edx, esi
cmovae ecx, dword [ebp - 0x2b0]
call fcn.00409a10
cmp dword [ebp - 0x2d0], 0
je 0x4019ea
xor eax, eax
mov dword [ebp - 0x224], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x238], ax
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x228], 0
push eax
call fcn.00402120
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x228]
cmp ecx, 1
jb 0x4019a3
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
movzx ecx, word [eax + ecx*2 - 2]
xor eax, eax
nop
cmp cx, word [eax + 0x429ce0]
je 0x4019a3
add eax, 2
cmp eax, 4
jb 0x401980
push 1
push 0x429738
lea ecx, [ebp - 0x238]
call fcn.00407ed0
push 0x42810c
lea ecx, [ebp - 0x238]
call fcn.004092a0
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
cmovae ecx, dword [ebp - 0x238]
xor edx, edx
call fcn.00406e80
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x4019ea
inc eax
push eax
push dword [ebp - 0x238]
call fcn.00402450
cmp dword [ebp - 0x2b8], 0
je 0x401abd
xor eax, eax
mov dword [ebp - 0x224], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x238], ax
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x228], 0
push eax
call fcn.00402120
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x228]
cmp ecx, 1
jb 0x401a76
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
movzx ecx, word [eax + ecx*2 - 2]
xor eax, eax
cmp cx, word [eax + 0x429ce0]
je 0x401a76
add eax, 2
cmp eax, 4
jb 0x401a53
push 1
push 0x429738
lea ecx, [ebp - 0x238]
call fcn.00407ed0
push 0x42810c
lea ecx, [ebp - 0x238]
call fcn.004092a0
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
cmovae ecx, dword [ebp - 0x238]
xor edx, edx
call fcn.00406e80
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x401abd
inc eax
push eax
push dword [ebp - 0x238]
call fcn.00402450
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
cmp al, 5
ja 0x401d9f
call esi
movzx ecx, al
shr ax, 8
cmp ecx, 5
ja 0x401ae9
jb 0x401d9f
test al, al
je 0x401d9f
xor eax, eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
push 0x20a
push eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 6
push eax
call fcn.0040f860
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x16
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x220], 0
jne 0x401b40
xor ecx, ecx
jmp 0x401b5f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b50
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x238]
call fcn.00402570
mov ecx, dword [ebp - 0x228]
cmp ecx, 1
jb 0x401bc3
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
movzx ecx, word [eax + ecx*2 - 2]
xor eax, eax
nop dword [eax + eax]
cmp cx, word [eax + 0x429ce0]
je 0x401bc3
add eax, 2
cmp eax, 4
jb 0x401ba0
push 1
push 0x429738
lea ecx, [ebp - 0x238]
call fcn.00407ed0
push 0xf
xor eax, eax
mov dword [ebp - 0x23c], 7
push 0x428124
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
call fcn.00402570
mov byte [ebp - 4], 7
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x224], 8
lea edx, [ebp - 0x238]
push eax
cmovae edx, dword [ebp - 0x238]
lea ecx, [ebp - 0x298]
call fcn.00401e90
add esp, 4
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x23c]
cmp eax, 8
jb 0x401c3b
inc eax
push eax
push dword [ebp - 0x250]
call fcn.00402450
xor eax, eax
mov dword [ebp - 0x23c], 7
push 8
push 0x428144
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], eax
mov word [ebp - 0x268], ax
call fcn.00402570
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x268]
cmp dword [ebp - 0x224], 8
lea edx, [ebp - 0x238]
push eax
cmovae edx, dword [ebp - 0x238]
lea ecx, [ebp - 0x280]
call fcn.00401e90
add esp, 4
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x254]
cmp eax, 8
jb 0x401cca
inc eax
push eax
push dword [ebp - 0x268]
call fcn.00402450
xor eax, eax
mov dword [ebp - 0x254], 7
cmp dword [ebp - 0x284], 8
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x258], 0
cmovae ecx, dword [ebp - 0x298]
xor edx, edx
mov word [ebp - 0x268], ax
call fcn.00406630
cmp dword [ebp - 0x26c], 8
lea ecx, [ebp - 0x280]
cmovae ecx, dword [ebp - 0x280]
xor edx, edx
call fcn.00406630
mov eax, dword [ebp - 0x26c]
cmp eax, 8
jb 0x401d35
inc eax
push eax
push dword [ebp - 0x280]
call fcn.00402450
xor eax, eax
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x270], 0
cmp eax, 8
jb 0x401d6a
inc eax
push eax
push dword [ebp - 0x298]
call fcn.00402450
xor eax, eax
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x288], 0
cmp eax, 8
jb 0x401d9f
inc eax
push eax
push dword [ebp - 0x238]
call fcn.00402450
mov eax, dword [ebp - 0x2b4]
cmp eax, 8
jb 0x401db7
inc eax
push eax
push dword [ebp - 0x2c8]
call fcn.00402450
xor eax, eax
mov dword [ebp - 0x2b4], 7
mov word [ebp - 0x2c8], ax
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2b8], 0
cmp eax, 8
jb 0x401dec
inc eax
push eax
push dword [ebp - 0x2e0]
call fcn.00402450
xor eax, eax
mov dword [ebp - 0x2cc], 7
mov word [ebp - 0x2e0], ax
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x2d0], 0
cmp eax, 8
jb 0x401e21
inc eax
push eax
push dword [ebp - 0x2b0]
call fcn.00402450
xor eax, eax
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x2a0], 0
cmp eax, 8
jb 0x401e56
inc eax
push eax
push dword [ebp - 0x2f8]
call fcn.00402450
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d320
mov esp, ebp
pop ebp
ret