Function at 0x416bfd
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x128c
call fcn.004e84e0
mov eax, dword [0x52ec00]
xor eax, esp
mov dword [esp + 0x1288], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x34], eax
xor eax, eax
lea edi, [esp + 0x30]
push 0x206
mov dword [esp + 0x30], esi
stosd dword es:[edi], eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
mov ebx, ecx
push esi
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
call fcn.004dbcc0
add esp, 0xc
xor eax, eax
push 0x1046
mov word [esp + 0x24c], ax
lea eax, [esp + 0x24e]
push esi
push eax
call fcn.004dbcc0
add esp, 0xc
cmp dword [ebp + 8], esi
jne 0x416cb0
push 0x5113c4
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x416cb0
push ebx
push str.http:___s
mov ecx, 0x824
lea edi, [esp + 0x250]
call fcn.0040299a
pop ecx
mov eax, edi
pop ecx
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
call fcn.00416b2e
pop ecx
test eax, eax
je 0x416da7
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416daa
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00419366
pop ecx
pop ecx
cmp dword [esp + 0xc], esi
jne 0x416d57
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, esi
je 0x416d23
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
mov dword [edi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x2c], esi
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov dword [edi + 8], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
jmp 0x416d25
xor edi, edi
lea eax, [esp + 0xc]
cmp edi, esi
je 0x416d47
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHICONFromBitmap
cmp eax, esi
je 0x416d3d
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
jmp 0x416d57
push 1
push eax
push esi
push esi
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp dword [ebp + 8], esi
je 0x416daa
push esi
push 0x80
push 3
push esi
xor ebx, ebx
inc ebx
push ebx
push 0x80000000
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x416daa
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x416d9e
mov dword [esp + 0x18], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x416daa
mov dword [ebp + 8], esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
call ebx
cmp dword [esp + 0x18], esi
je 0x416e20
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x416dd8
push 0x80070057
call fcn.0040499d
lea eax, [esp + 0x38]
push eax
lea edi, [esp + 0x28]
call fcn.0041980a
lea eax, [esp + 0x18]
push eax
call fcn.004d65f5
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x28]
pop ecx
mov ecx, dword [esp + 0x1c]
sbb ecx, dword [esp + 0x28]
js 0x416e16
jg 0x416e09
cmp eax, esi
jb 0x416e16
cmp ecx, esi
jl 0x416e2a
jg 0x416e16
cmp eax, 0x15180
jbe 0x416e2a
mov dword [esp + 0x10], 1
jmp 0x416e2a
xor eax, eax
inc eax
push eax
mov dword [esp + 0x14], eax
call ebx
cmp dword [ebp + 8], esi
je 0x416e5f
cmp dword [esp + 0x10], esi
je 0x416e5f
cmp dword [ebp + 0x10], esi
je 0x416e5f
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xbb8
push esi
push 0x507b1c
call fcn.0043a97e
add esp, 0x18
push esi
call ebx
mov ecx, dword [esp + 0x1294]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d5a7d
mov esp, ebp
pop ebp
ret