Function at 0x4041d0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbb37
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x270
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x78c]
push 1
push 1
mov eax, dword [ecx]
call dword [eax + 0x1c0]
mov ecx, dword [esi + 0x784]
push dword [esi + 0x7a8]
mov eax, dword [ecx]
call dword [eax + 0x204]
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
xorps xmm0, xmm0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x260]
movlpd qword [ebp - 0x260], xmm0
call fcn.00408b60
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x260]
test ecx, ecx
je 0x4042a8
mov eax, dword [ecx]
lea edx, [ebp - 0x240]
push edx
call dword [eax + 0x18]
cmp dword [ebp - 0x230], 0
jne 0x404487
push 0x20c
lea eax, [ebp - 0x228]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x40430d
xor eax, eax
lea ecx, [ebp - 0x228]
mov word [ebp - 0x1e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4042f4
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
jmp 0x404314
push 3
push 0x4e2b98
lea ecx, [ebp - 0x240]
call fcn.00402250
push 0x20a
lea eax, [ebp - 0x228]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x240]
lea eax, [ebp - 0x240]
add esp, 0xc
cmp dword [ebp - 0x22c], 8
cmovae eax, ecx
movzx eax, word [eax]
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x240]
cmovae eax, ecx
movzx eax, word [eax + 2]
mov word [ebp - 0x226], ax
lea eax, [ebp - 0x240]
cmovae eax, ecx
xor ecx, ecx
mov word [ebp - 0x222], cx
movzx eax, word [eax + 4]
mov word [ebp - 0x224], ax
cmp eax, 0x2f
jne 0x404397
mov eax, 0x5c
mov word [ebp - 0x224], ax
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4043a0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.00402250
push 0x22
xor eax, eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
lea ecx, [ebp - 0x258]
push str.UsersPublicDownloadsQNWallpaper
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
call fcn.00402250
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x280]
call fcn.0041ad70
add esp, 4
mov edi, eax
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 4
cmp eax, edi
je 0x404465
mov ecx, eax
call fcn.004021f0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [ebp - 0x240], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x230], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 5
call fcn.004021f0
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 9
call fcn.004021f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x240]
call fcn.00418470
test al, al
jne 0x4044a1
lea ecx, [ebp - 0x240]
call fcn.00418870
mov ecx, dword [esi + 0x7b4]
test ecx, ecx
je 0x4044c5
cmp dword [ebp - 0x22c], 8
lea edx, [ebp - 0x240]
mov eax, dword [ecx]
cmovae edx, dword [ebp - 0x240]
push edx
call dword [eax + 0x2c]
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00404a60
mov ecx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x268]
test ecx, ecx
ja 0x404513
jb 0x4044f1
cmp eax, 0x6400000
jae 0x404513
mov ecx, dword [esi + 0x7b8]
test ecx, ecx
je 0x404505
mov eax, dword [ecx]
push 0
call dword [eax + 0xfc]
mov ecx, dword [esi + 0x7bc]
test ecx, ecx
je 0x404589
push 1
jmp 0x404581
cmp dword [esi + 0x7c8], 0
je 0x404561
push ecx
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00404c20
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x258]
mov ecx, dword [esi + 0x7c8]
cmp dword [ebp - 0x244], 8
cmovae edx, dword [ebp - 0x258]
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0xe
call fcn.004021f0
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x7b8]
test ecx, ecx
je 0x404575
mov eax, dword [ecx]
push 1
call dword [eax + 0xfc]
mov ecx, dword [esi + 0x7bc]
test ecx, ecx
je 0x404589
push 0
mov eax, dword [ecx]
call dword [eax + 0xfc]
mov ecx, dword [esi + 0x7c0]
test ecx, ecx
je 0x40459d
mov eax, dword [ecx]
push 0
call dword [eax + 0xfc]
mov ecx, dword [esi + 0x7c4]
test ecx, ecx
je 0x4045b1
mov eax, dword [ecx]
push 0
call dword [eax + 0xfc]
mov byte [ebp - 4], 0x12
mov esi, dword [ebp - 0x25c]
test esi, esi
je 0x4045e0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4045e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4045e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0x13
call fcn.004021f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret