Function at 0x4544d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
and eax, 1
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
je 0x4544f2
lea ebx, [edi + 0xbd4]
mov dword [esp + 0x14], ebx
jmp 0x4544fe
lea ecx, [edi + 0xb94]
mov dword [esp + 0x14], ecx
mov ebx, ecx
test eax, eax
je 0x45450e
lea ebp, [edi + 0xcd4]
mov dword [esp + 0x10], ebp
jmp 0x45451a
lea edx, [edi + 0xc14]
mov dword [esp + 0x10], edx
mov ebp, edx
mov eax, dword [edi + 0xb00]
xor esi, esi
dec eax
test eax, eax
jle 0x45454f
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp]
push ecx
push eax
call fcn.0055724d
add esp, 8
test eax, eax
je 0x45454b
mov edx, dword [edi + 0xb00]
inc esi
add ebp, 0xc
dec edx
cmp esi, edx
jl 0x454527
mov ebp, dword [esp + 0x10]
mov eax, dword [edi + 0xb00]
dec eax
cmp esi, eax
jne 0x454588
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x454588
mov eax, dword [edi + 0x668]
test eax, eax
jne 0x454588
mov ecx, dword [ebp]
mov eax, dword [ecx - 8]
test eax, eax
je 0x454588
lea edx, [esi + esi*2]
mov eax, dword [ebp + edx*4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebx + esi*4]
lea eax, [ebx + esi*4]
test esi, esi
mov dword [esp + 0x20], ecx
jle 0x4545e8
lea edx, [esi + esi*2]
mov ebx, eax
mov dword [esp + 0x18], esi
lea ebp, [ebp + edx*4]
lea esi, [ebp - 0xc]
mov ecx, esi
call fcn.004608e0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00575b56
lea eax, [esp + 0x20]
mov ecx, ebp
push eax
call fcn.00437650
lea ecx, [esp + 0x1c]
call fcn.00575ae8
mov ecx, dword [ebx - 4]
mov eax, dword [esp + 0x18]
mov dword [ebx], ecx
add ebx, 0xfffffffc
dec eax
mov ebp, esi
mov dword [esp + 0x18], eax
jne 0x4545a3
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push ecx
mov dword [ebx], edx
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
call fcn.00575b56
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
call fcn.00437650
lea ecx, [esp + 0x30]
call fcn.00575ae8
cmp dword [ebx], 0
jne 0x454669
test esi, esi
je 0x454669
cmp byte [esi], 0
je 0x454669
mov eax, dword [edi + 0xaf4]
cmp eax, 1
jne 0x45463c
mov ecx, dword [edi + 0xd9c]
push 0x54
push 0x69
push ecx
jmp 0x45465f
cmp eax, 2
jne 0x45464e
mov edx, dword [edi + 0xd9c]
push 0x40
push 0x50
push edx
jmp 0x45465f
mov eax, dword [edi + 0xd9c]
push 0x80
push 0xa0
push eax
call fcn.004f4b70
add esp, 0xc
mov dword [ebx], eax
mov eax, dword [ebx]
test eax, eax
je 0x454685
test esi, esi
je 0x454678
cmp byte [esi], 0
jne 0x454685
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx], 0
cmp dword [ebx], 0
je 0x4547a8
mov eax, dword [esp + 0x34]
and eax, 2
mov dword [esp + 0x20], eax
je 0x4546a9
push esi
mov ecx, edi
call fcn.004547c0
mov dword [esp + 0x34], eax
jmp 0x4546c7
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4546bd
mov ecx, dword [edi + 0xb90]
mov dword [esp + 0x34], ecx
jmp 0x4546c7
mov edx, dword [edi + 0xb8c]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4547a8
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov eax, dword [edi + 0xd9c]
push eax
call ebp
push 0
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
push 4
push esi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov ecx, dword [ebx]
push ecx
push esi
call ebp
mov ebx, eax
mov eax, dword [edi + 0xaf4]
cmp eax, 1
jne 0x45472d
mov edx, dword [edi + 0xd9c]
push 0xcc0020
push 0xfc
push 0x13b
push 0
push 0
push edx
push 0x54
push 0x69
jmp 0x454771
cmp eax, 2
push 0xcc0020
jne 0x454752
mov eax, dword [edi + 0xd9c]
push 0xfc
push 0x13b
push 0
push 0
push eax
push 0x40
push 0x50
jmp 0x454771
mov ecx, dword [edi + 0xd9c]
push 0x100
push 0x140
push 0
push 0
push ecx
push 0x80
push 0xa0
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
push ebx
push esi
call ebp
mov edx, dword [esp + 0x30]
mov eax, dword [edi + 0xd9c]
push edx
push eax
call ebp
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4547a8
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8