Function at 0x407ae2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, dword [ebp + 8]
push eax
lea ecx, [ebx + 0xc8]
call fcn.0041521a
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
xor esi, esi
inc esi
push esi
push eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
mov ecx, ebx
push eax
push edi
push edi
call fcn.00413751
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
push esi
push eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
lea ecx, [ebx + 0x74]
add eax, 0xf
push eax
push edi
push 6
call fcn.00413751
test byte [0x45db44], 1
jne 0x407b5f
or dword [0x45db44], esi
mov ecx, 0x45db3c
call fcn.0041ae45
push 0x443743
call fcn.0042bc04
pop ecx
push edi
push edi
push 0x20
push 0x39
push 0x39
mov ecx, 0x45db3c
call fcn.0041b25f
push edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call sub.gdiplus.dll_GdiplusStartup
mov dword [ebp - 8], edi
call fcn.00402c7b
add eax, 0xc
cmp dword [eax + 8], edi
jle 0x407d07
push dword [ebp - 8]
push ecx
call fcn.00402c7b
mov ecx, eax
add esp, 4
add ecx, 0xc
call fcn.0040536f
mov ebx, eax
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004020b8
lea eax, [ebp - 0x10]
push str..jpg
push eax
call fcn.00402ca1
add eax, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404f34
add esp, 0xc
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404f6d
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040285f
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407cd7
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, edi
je 0x407c23
push dword [ebp - 0xc]
mov esi, eax
call fcn.00401042
mov esi, eax
jmp 0x407c25
xor esi, esi
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
jne 0x407cd7
push 0xff000000
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp eax, edi
je 0x407c4d
mov dword [esi + 8], eax
jmp 0x407c4f
xor eax, eax
cmp eax, edi
jne 0x407cd7
push dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], vtable.CBitmap.0
call fcn.0041521a
push dword [ebp - 0x20]
push dword [0x45db40]
call fcn.00416b24
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.004080aa
lea eax, [ebx + 0xc]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
jg 0x407c91
lea eax, [ebx + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push edi
push dword [ebp - 8]
add ecx, 0x74
push edi
push edi
push eax
push dword [ebp - 8]
push 3
call fcn.0041adda
push dword [ebx + 4]
mov ecx, dword [ebp + 8]
push edi
push edi
push edi
push edi
push 4
push edi
push eax
add ecx, 0x74
call fcn.0041ae1d
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CBitmap.0
call fcn.00402281
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040285f
inc dword [ebp - 8]
call fcn.00402c7b
mov ecx, dword [ebp - 8]
add eax, 0xc
cmp ecx, dword [eax + 8]
jl 0x407b9f
mov ebx, dword [ebp + 8]
push dword [ebp - 0x1c]
call sub.gdiplus.dll_GdiplusShutdown
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0x1001
push dword [ebx + 0x94]
call esi
lea eax, [ebx + 0x74]
mov dword [ebp + 8], eax
push eax
mov eax, 0x45db3c
call fcn.00408053
push edi
push edi
push 0x1026
push dword [ebx + 0x94]
call esi
push 0xffffff
push edi
push 0x1024
push dword [ebx + 0x94]
call esi
push 0x46
pop eax
push 0x50
pop ecx
push ecx
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041ada2
pop edi
pop esi
pop ebx
leave
ret 0x14