Function at 0x498e21
Capabilities:
Check if file exists
Get file size
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564033
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x12b4
call fcn.005482e0
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x1278], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x12a8], eax
xor eax, eax
lea edi, [ebp - 0x12a0]
push 0x206
mov dword [ebp - 0x12a4], esi
stosd dword es:[edi], eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x1288], ebx
mov dword [ebp - 0x1274], esi
mov dword [ebp - 0x1290], esi
mov dword [ebp - 0x127c], esi
mov dword [ebp - 0x129c], esi
mov dword [ebp - 0x1298], esi
mov dword [ebp - 0x1270], esi
call fcn.00537010
add esp, 0xc
xor eax, eax
push 0x1046
mov word [ebp - 0x126c], ax
lea eax, [ebp - 0x126a]
push esi
push eax
call fcn.00537010
add esp, 0xc
cmp dword [ebp + 0xc], esi
jne 0x498f20
push 0x57fb6c
push dword [ebp - 0x1278]
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x498f20
push dword [ebp - 0x1278]
lea edi, [ebp - 0x126c]
push str.http:___s
push 0x824
call fcn.00403d4f
mov eax, edi
add esp, 0xc
mov dword [ebp - 0x1278], eax
cmp ebx, esi
jne 0x498f2a
mov ebx, dword [ebp - 0x1278]
lea eax, [ebp - 0x224]
push eax
call fcn.00498d48
pop ecx
test eax, eax
je 0x49905e
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x129c], eax
cmp eax, esi
je 0x499061
lea eax, [ebp - 0x1274]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0049a93c
pop ecx
pop ecx
cmp dword [ebp - 0x1274], esi
jne 0x498fe9
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, esi
je 0x498fb1
lea eax, [ebp - 0x1280]
push eax
lea eax, [ebp - 0x224]
push eax
mov dword [edi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x1280], esi
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1280]
mov dword [edi + 4], eax
jmp 0x498fb3
xor edi, edi
lea eax, [ebp - 0x1274]
cmp edi, esi
je 0x498fd7
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHICONFromBitmap
cmp eax, esi
je 0x498fcd
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
jmp 0x498fe9
push 1
push eax
push esi
push esi
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp dword [ebp + 0xc], esi
je 0x499061
push esi
push 0x80
push 3
push esi
push 3
push 0xc0000000
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1270], ebx
cmp ebx, 0xffffffff
je 0x499061
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
push esi
lea eax, [ebp - 0x12a4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x499040
mov dword [ebp - 0x1290], 1
cmp edi, esi
jne 0x499061
mov dword [ebp - 0x1298], 1
cmp dword [ebp - 0x1288], esi
je 0x499061
mov dword [ebp - 0x1290], esi
jmp 0x499061
mov dword [ebp + 0xc], esi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
inc ebx
push ebx
call edi
cmp dword [ebp - 0x1290], esi
je 0x499141
lea eax, [ebp - 0x12b0]
push eax
lea eax, [ebp - 0x12a4]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x49909e
push 0x80070057
call fcn.00403cbc
lea eax, [ebp - 0x12b0]
push eax
lea edi, [ebp - 0x1294]
call fcn.004510f7
lea eax, [ebp - 0x1284]
push eax
mov dword [ebp - 0x1284], esi
mov dword [ebp - 0x1280], esi
call fcn.005334f8
mov eax, dword [ebp - 0x1280]
pop ecx
mov ecx, dword [ebp - 0x1284]
sub ecx, dword [ebp - 0x1294]
sbb eax, dword [ebp - 0x1290]
js 0x4990f7
jg 0x4990e9
cmp ecx, esi
jb 0x4990f7
cmp eax, esi
jl 0x4990fd
jg 0x4990f7
cmp ecx, 0x15180
jbe 0x4990fd
mov dword [ebp - 0x127c], ebx
cmp dword [ebp - 0x1298], esi
je 0x499123
cmp eax, esi
jl 0x49911d
jg 0x49910f
cmp ecx, esi
jb 0x49911d
cmp eax, esi
jl 0x499123
jg 0x49911d
cmp ecx, 0x5460
jbe 0x499123
mov dword [ebp - 0x127c], ebx
or dword [ebp - 4], 0xffffffff
jmp 0x49914a
push ebx
mov dword [ebp - 0x127c], ebx
call edi
cmp dword [ebp + 0xc], esi
je 0x499287
cmp dword [ebp - 0x127c], esi
je 0x499287
cmp dword [ebp + 0x14], esi
je 0x499287
mov edi, 0x104c
push edi
call fcn.0052fe0a
pop ecx
push edi
mov ebx, eax
push esi
push ebx
call fcn.00537010
mov edx, dword [ebp - 0x1288]
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebx], eax
cmp edx, esi
je 0x49919e
lea eax, [ebx + 4]
push eax
mov ecx, 0x824
call fcn.00408533
cmp dword [ebp - 0x1270], esi
je 0x499206
cmp dword [ebp - 0x1270], 0xffffffff
je 0x499206
xor eax, eax
mov word [ebp - 0x12c0], ax
mov dword [ebp - 0x128c], esi
lea edi, [ebp - 0x1288]
stosd dword es:[edi], eax
lea edi, [ebp - 0x12be]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x12c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x128c]
push eax
lea eax, [ebp - 0x12c0]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push esi
push esi
lea eax, [ebp - 0x128c]
push eax
push dword [ebp - 0x1270]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp - 0x129c], esi
jne 0x499239
cmp dword [ebp - 0x1270], esi
jne 0x499241
push esi
push 0x80
push 1
push esi
push 2
push 0x40000000
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1270], eax
cmp dword [ebp - 0x1270], esi
je 0x49925c
cmp dword [ebp - 0x1270], 0xffffffff
je 0x49925c
push dword [ebp - 0x1270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1270], esi
mov edx, dword [ebp - 0x12a8]
mov ecx, dword [ebp - 0x1278]
push esi
push ebx
push dword [ebp + 0x14]
push 0xbb8
push esi
push 0x577458
call fcn.0049e3b9
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x1270], esi
je 0x4992a4
cmp dword [ebp - 0x1270], 0xffffffff
je 0x4992a4
push dword [ebp - 0x1270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1274]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0052f7d0
leave
ret