Function at 0x4053d0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c5ba
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x140], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x144], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push 0x208
mov word [esi], ax
call fcn.00405b90
push pe_nt_image_headers32
lea eax, [ebp - 0x138]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x144], 1
call fcn.00417b20
add esp, 0xc
mov dword [ebp - 0x13c], 0x114
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x12c], 2
jne 0x405554
cmp dword [ebp - 0x138], 6
jb 0x405554
cmp byte [ebp + 8], 0
jne 0x405554
cmp dword [0x440890], 0
jne 0x4054aa
call fcn.00405650
push 0x440880
lea ecx, [ebp - 0x28]
call fcn.004041a0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.004045b0
cmp dword [esi + 0x14], 8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x140], eax
mov eax, esi
mov dword [ebp - 0x148], 1
jb 0x4054e8
mov eax, dword [esi]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x140]
push ecx
push eax
lea edx, [ebp - 0x28]
mov ecx, 0x80000003
cmovae edx, dword [ebp - 0x28]
push str.AppData
call fcn.00413640
mov byte [ebp - 4], 0
add esp, 0x10
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x405570
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405548
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405645
push edx
push ecx
call fcn.004152ff
add esp, 8
jmp 0x405570
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40555e
mov eax, dword [esi]
push eax
push 1
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x40557c
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
add eax, eax
lea edi, [ecx + eax]
mov ecx, esi
cmp edx, 8
jb 0x40558d
mov ecx, dword [esi]
add ecx, eax
mov eax, esi
cmp edx, 8
jb 0x405598
mov eax, dword [esi]
cmp eax, ecx
je 0x4055ad
nop dword [eax]
cmp word [eax], 0
je 0x4055ad
add eax, 2
cmp eax, ecx
jne 0x4055a0
push edi
push eax
lea eax, [ebp - 0x140]
mov ecx, esi
push eax
call fcn.00405a50
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x405628
mov edx, dword [esi + 0x14]
mov eax, esi
cmp edx, 8
jb 0x4055d0
mov eax, dword [esi]
cmp word [eax + ecx*2 - 2], 0x2f
je 0x40561c
mov eax, esi
cmp edx, 8
jb 0x4055e1
mov eax, dword [esi]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x40561c
cmp ecx, edx
jae 0x405605
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 8
jb 0x4055fc
mov eax, dword [esi]
mov dword [eax + ecx*2], 0x5c
jmp 0x40561c
push 0x5c
mov byte [ebp - 0x140], 0
push dword [ebp - 0x140]
push ecx
mov ecx, esi
call fcn.00405d10
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
mov ecx, esi
call fcn.004045b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
ret
call fcn.0041b091
int3