Function at 0x4017a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x844
mov eax, dword [0x477b14]
push ebx
push esi
push edi
mov dword [esp + 0x84c], eax
call fcn.004207a0
sub eax, dword [0x47ab7c]
cmp eax, 0x1388
jb 0x401a92
mov eax, dword [0x47ab80]
xor ebx, ebx
cmp eax, ebx
jne 0x401a92
xor eax, eax
mov word [esp + 0x28], bx
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x438], bx
mov ecx, 0x81
lea edi, [esp + 0x43a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x230], bx
mov ecx, 0x81
lea edi, [esp + 0x232]
rep stosd dword es:[edi], eax
push str.Wallpaper
push str.Control_PanelDesktop
push SysReAllocString
stosw word es:[edi], ax
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.00421ce0
push str.WallpaperStyle
push str.Control_PanelDesktop
push SysReAllocString
lea ecx, [esp + 0x458]
push 0x104
push ecx
call fcn.00421ce0
push str.TileWallpaper
push str.Control_PanelDesktop
push SysReAllocString
lea edx, [esp + 0x264]
push 0x104
push edx
call fcn.00421ce0
add esp, 0x3c
push 1
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, eax
push 0x477168
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40190c
push 0x477168
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
push 0x477168
je 0x4018e9
push 0x47b848
lea eax, [esp + 0x648]
push 0x466684
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x650]
add esp, 0x10
push edx
call fcn.00401000
add esp, 4
jmp 0x40191f
lea ecx, [esp + 0x644]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x648]
add esp, 8
push edx
call fcn.00401000
add esp, 4
jmp 0x40191f
push 0x466680
lea eax, [esp + 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4019ad
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp dword [0x47a248], edi
jne 0x40198b
push 0x47a240
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x4019a9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [0x47a248], edi
mov dword [0x47a240], eax
mov dword [0x47a244], ecx
mov ebx, 1
mov edi, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x644]
push eax
call esi
test eax, eax
jne 0x4019ec
lea ecx, [esp + 0x438]
push ecx
push 0x477370
call esi
test eax, eax
jne 0x4019ec
lea edx, [esp + 0x230]
push edx
push 0x477374
call esi
test eax, eax
je 0x401a57
push 0x47a968
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
jne 0x401a22
push 0x47a960
lea ecx, [esp + 0x43c]
push ecx
call esi
test eax, eax
jne 0x401a22
push 0x47a964
lea edx, [esp + 0x234]
push edx
call esi
test eax, eax
je 0x401a57
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x28]
push eax
push 0x47a968
call esi
lea ecx, [esp + 0x438]
push ecx
push 0x47a960
call esi
lea edx, [esp + 0x230]
push edx
push 0x47a964
call esi
mov ebx, 1
cmp edi, dword [0x47ab70]
je 0x401a6f
cmp edi, dword [0x477378]
je 0x401a6f
mov dword [0x47ab70], edi
jmp 0x401a73
test ebx, ebx
je 0x401a88
mov eax, dword [ebp + 8]
test eax, eax
jne 0x401a88
mov eax, dword [0x47aba4]
test eax, eax
jne 0x401a88
call fcn.00401410
mov dword [0x47aba4], 0
mov ecx, dword [esp + 0x84c]
xor eax, eax
call fcn.00444c27
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret