Function at 0x40a1a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ab28
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x94], edi
mov byte [ebp - 0x89], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x78], 0
movups xmmword [ebp - 0x88], xmm0
test esi, esi
je 0x40a7c0
cmp dword [edi + 0x10], 0
je 0x40a7c0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40a21a
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a231
mov byte [ebp - 0x89], 1
jmp 0x40a7c0
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
jne 0x40a324
call fcn.0047f7a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a7c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x51
push str.d:jenkins.jenkinsworkspacegroup_clean_software_pm_software_pmcommonutils.cc
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.0040c820
push 3
push 0x5aaf9c
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.0040c820
mov byte [ebp - 4], 1
call fcn.0047f7a0
mov edi, eax
lea ecx, [ebp - 0x18c]
push 0x2a1
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00405890
mov esi, eax
push str.GetIconInfo_fail__errno_
push esi
mov byte [ebp - 4], 2
call fcn.00406c40
add esp, 8
mov ecx, esi
push dword [ebp - 0x94]
call fcn.00406aa0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x18c]
call fcn.00406f60
lea ecx, [ebp - 0x30]
call fcn.004064a0
lea ecx, [ebp - 0x74]
call fcn.004064a0
jmp 0x40a7c0
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push eax
push 0x18
push dword [ebp - 0x78]
movups xmmword [ebp - 0x58], xmm0
movq qword [ebp - 0x48], xmm0
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x40a406
call fcn.0047f7a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a7c0
push 0x51
push str.d:jenkins.jenkinsworkspacegroup_clean_software_pm_software_pmcommonutils.cc
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], al
call fcn.0040c820
push 3
push 0x5aaf9c
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 3
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.0040c820
mov byte [ebp - 4], 4
call fcn.0047f7a0
mov edi, eax
lea ecx, [ebp - 0x18c]
push 0x2a6
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00405890
mov esi, eax
push str.GetObject_fail
push esi
mov byte [ebp - 4], 5
call fcn.00406c40
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x18c]
call fcn.00406f60
lea ecx, [ebp - 0x74]
call fcn.004064a0
lea ecx, [ebp - 0x30]
call fcn.004064a0
jmp 0x40a7c0
cmp word [ebp - 0x46], 0x20
push 0x10
je 0x40a456
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x40a44a
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
push dword [ebp - 0x18]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi], vtable.Gdiplus::Bitmap.0
call sub.gdiplus.dll_GdipCreateBitmapFromHICON
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 4], eax
jmp 0x40a59a
mov dword [ebp - 0x14], 0
jmp 0x40a59a
mov esi, dword [ebp - 0x78]
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
mov dword [ebp - 0x90], eax
test edi, edi
je 0x40a494
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
xorps xmm0, xmm0
push 0
movups xmmword [edi], xmm0
push esi
mov dword [edi], vtable.Gdiplus::Bitmap.0
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [edi + 4], eax
jmp 0x40a49c
xor edi, edi
mov dword [ebp - 0x90], edi
test edi, edi
je 0x40a7c0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x40a4be
mov dword [edi + 8], eax
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
mov dword [ebp - 0x14], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x40a4db
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], esi
push dword [edi + 4]
call sub.gdiplus.dll_GdipGetImagePixelFormat
test eax, eax
je 0x40a505
mov dword [edi + 8], eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push 1
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipBitmapLockBits
test eax, eax
je 0x40a521
mov dword [edi + 8], eax
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40a57a
mov edi, dword [ebp - 0x14]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x74]
mov dword [edi], vtable.Gdiplus::Bitmap.0
lea edi, [ebp - 0x5c]
push edi
push eax
push 0x26200a
push ecx
push edx
push esi
mov dword [ebp - 0x5c], 0
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x90]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 4], eax
jmp 0x40a581
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x74]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipBitmapUnlockBits
test eax, eax
je 0x40a594
mov dword [edi + 8], eax
mov edi, dword [ebp - 0x94]
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x40a684
call fcn.0047f7a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a7b0
push 0x51
push str.d:jenkins.jenkinsworkspacegroup_clean_software_pm_software_pmcommonutils.cc
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], al
call fcn.0040c820
push 3
push 0x5aaf9c
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 6
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
call fcn.0040c820
mov byte [ebp - 4], 7
call fcn.0047f7a0
mov edi, eax
lea ecx, [ebp - 0x18c]
push 0x2bb
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00405890
mov esi, eax
push str.get_bitmap_fail
push esi
mov byte [ebp - 4], 8
call fcn.00406c40
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x18c]
call fcn.00406f60
lea ecx, [ebp - 0xac]
call fcn.004064a0
lea ecx, [ebp - 0xc4]
call fcn.004064a0
jmp 0x40a7b0
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
push eax
push str.image_png
movups xmmword [ebp - 0x40], xmm0
call fcn.00407e80
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x40a6a4
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x40]
push eax
push edi
push dword [esi + 4]
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
je 0x40a7a1
mov dword [esi + 8], eax
call fcn.0047f7a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a7a8
push 0x51
push str.d:jenkins.jenkinsworkspacegroup_clean_software_pm_software_pmcommonutils.cc
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], al
call fcn.0040c820
push 3
push 0x5aaf9c
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], 9
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0xf
mov byte [ebp - 0xdc], 0
call fcn.0040c820
mov byte [ebp - 4], 0xa
call fcn.0047f7a0
mov edi, eax
lea ecx, [ebp - 0x224]
push 0x2c2
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.00405890
mov esi, eax
push str.save_bitmap_fail
push esi
mov byte [ebp - 4], 0xb
call fcn.00406c40
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x224]
call fcn.00406f60
lea ecx, [ebp - 0xdc]
call fcn.004064a0
lea ecx, [ebp - 0xf4]
call fcn.004064a0
mov esi, dword [ebp - 0x14]
jmp 0x40a7a8
mov byte [ebp - 0x89], 1
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x40a7c0
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x78]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x40a7d0
push eax
call esi
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x40a7da
push ecx
call esi
mov al, byte [ebp - 0x89]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret