Function at 0x407130
Capabilities:
Change the wallpaper
Get common file path

Disassembly:
sub esp, 0x45c
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 8
push esi
call ebx
push 0xa
push esi
mov ebp, eax
call ebx
cmp ebp, edi
mov ebx, eax
je 0x407373
cmp ebx, edi
je 0x407373
mov eax, dword [esp + 0x10]
push ebx
push ebp
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x41b280]
lea ecx, [esp + 0x54]
push ecx
push 0x3a
call fcn.00402950
push edi
push 1
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x20], eax
push 2
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov word [esp + 0x3c], di
mov word [esp + 0x3e], di
mov word [esp + 0x40], di
mov word [esp + 0x42], di
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov word [esp + 0x4c], 0xff00
mov word [esp + 0x4e], di
mov word [esp + 0x50], di
mov word [esp + 0x52], di
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 1
call dword [sym.imp.MSIMG32.dll_GradientFill]
push 0xffffff
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x2bc
push edi
push edi
push edi
push 0x20
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x14]
add ecx, edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], ebx
mov eax, ebp
jmp 0x407260
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407260
push 0x805
lea ecx, [esp + 0x48]
push ecx
sub eax, ebp
sub eax, 1
push eax
push ebp
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x18]
call fcn.004073a0
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x40733b
lea edx, [esp + 0x260]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x58]
push eax
push edi
push edi
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edx, str..bmp
lea eax, [esp + 0x58]
mov ebx, 0x104
lea esp, [esp]
cmp word [eax], di
je 0x4072dd
add eax, 2
sub ebx, 1
jne 0x4072d0
cmp ebx, edi
je 0x407303
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
cmp cx, di
je 0x4072f7
sub ebx, 1
jne 0x4072e1
cmp ebx, edi
jne 0x407303
mov word [esp + 0x25e], di
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push esi
push edx
lea eax, [esp + 0x60]
push eax
mov eax, ebx
call fcn.004074c0
add esp, 0xc
push 3
lea ecx, [esp + 0x5c]
push ecx
push edi
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x10]
push ecx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret