Function at 0x410eb0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4110bf
test al, 0x10
jne 0x4110bf
push 0
push 0x8000000
push 4
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4110bf
test ebx, ebx
je 0x4110bf
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov esi, eax
push esi
push 0
push 4
push 0
push ebx
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4110b8
push esi
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41109e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push ecx
push edx
push eax
call fcn.00433ea0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 8]
push ecx
call fcn.00411940
add esp, 4
push esi
mov dword [edi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
push ebx
call esi
cmp dword [edi + 0x30], 0
je 0x4110bf
mov eax, dword [edi + 0x20]
test eax, eax
je 0x410fdd
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [edi + 0x30]
mov dword [edi + 0x20], eax
call fcn.00411910
mov esi, dword [edi + 0x30]
mov dword [edi + 0x28], eax
call fcn.004118e0
cmp dword [edi + 0x28], 0
mov dword [edi + 0x2c], eax
jle 0x4110bf
test eax, eax
jle 0x4110bf
mov eax, dword [edi + 0x24]
test eax, eax
je 0x41101e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov dword [edi + 0x24], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x20]
push eax
call ebx
mov ecx, dword [edi + 0x20]
lea esi, [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.0040ffb0
mov edx, dword [edi + 0x2c]
mov ecx, dword [edi + 0x30]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x30], edx
call fcn.00411890
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x20]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebx
call esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4