Function at 0x458380
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [esp + 0x10], edi
cmp esi, edi
je 0x458512
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x458512
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x4583d0
lea eax, [ebx + 4]
push eax
push esi
mov dword [ebx], vtable.Gdiplus::Image.0
mov dword [eax], edi
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [ebx + 8], eax
jmp 0x4583d2
xor ebx, ebx
mov edi, ebx
mov dword [esp + 0x1c], edi
test ebx, ebx
je 0x458512
mov eax, dword [ebx + 8]
mov dword [ebx + 8], 0
test eax, eax
jne 0x458506
mov edi, dword [sym.imp.USER32.dll_SetRect]
push 0x7e
push 0xcc
push eax
push eax
lea eax, [esp + 0x60]
push eax
call edi
mov esi, ebx
call fcn.004014c0
push eax
call fcn.00401490
push eax
push 0
push 0
lea ecx, [esp + 0x50]
push ecx
call edi
lea eax, [esp + 0x40]
lea edi, [esp + 0x50]
lea esi, [esp + 0x20]
call fcn.00458070
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
sub edi, dword [esp + 0x20]
sub esi, dword [esp + 0x24]
push 0x10
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x458462
mov ecx, esi
mov edx, edi
mov esi, eax
call fcn.00401f90
jmp 0x458464
xor eax, eax
lea esi, [esp + 0x20]
mov dword [esp + 0x10], eax
call fcn.00405700
mov edx, dword [esp + 0x20]
push 2
push edx
call sub.gdiplus.dll_GdipSetInterpolationMode
test eax, eax
je 0x458485
mov dword [esp + 0x24], eax
fldz
mov esi, ebx
fst dword [esp + 0x30]
fstp dword [esp + 0x34]
fild dword [esp + 0x14]
fstp dword [esp + 0x38]
fild dword [esp + 0x18]
fstp dword [esp + 0x3c]
call fcn.004014c0
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
test eax, eax
jge 0x4584b8
fadd dword [0x51266c]
push ecx
mov esi, ebx
fstp dword [esp]
call fcn.00401490
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
test eax, eax
jge 0x4584d5
fadd dword [0x51266c]
sub esp, 0xc
fstp dword [esp + 8]
xor ecx, ecx
fldz
lea eax, [esp + 0x40]
fst dword [esp + 4]
mov edi, ebx
lea esi, [esp + 0x30]
fstp dword [esp]
call fcn.00405550
mov eax, dword [esp + 0x20]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov edi, dword [esp + 0x1c]
jmp 0x458512
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
xor edi, edi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xe4]
test ecx, ecx
je 0x458527
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 0xe8]
mov dword [esi + 0xe4], edi
test ecx, ecx
je 0x45853f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x10]
test edi, edi
setne bl
mov dword [esi + 0xe8], ecx
mov byte [esp + 0x1c], bl
test bl, bl
je 0x45855a
xor edi, edi
jmp 0x45856b
push 0x532ba8
mov edx, str.mainwndui_add.png
call fcn.00405f10
mov edi, eax
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x45857d
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0xec], edi
mov esi, dword [esi + 0xe0]
test esi, esi
je 0x458598
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call fcn.00410a60
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4