Function at 0x42ffc0
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 0x42ffe2
lea ebx, [edi + 0xbec]
mov dword [esp + 0x14], ebx
jmp 0x42ffee
lea ecx, [edi + 0xbac]
mov dword [esp + 0x14], ecx
mov ebx, ecx
test eax, eax
je 0x42fffe
lea ebp, [edi + 0xcec]
mov dword [esp + 0x10], ebp
jmp 0x43000a
lea edx, [edi + 0xc2c]
mov dword [esp + 0x10], edx
mov ebp, edx
mov eax, dword [edi + 0xb18]
xor esi, esi
dec eax
test eax, eax
jle 0x43003f
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp]
push ecx
push eax
call fcn.00573b74
add esp, 8
test eax, eax
je 0x43003b
mov edx, dword [edi + 0xb18]
inc esi
add ebp, 0xc
dec edx
cmp esi, edx
jl 0x430017
mov ebp, dword [esp + 0x10]
mov eax, dword [edi + 0xb18]
dec eax
cmp esi, eax
jne 0x430078
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x430078
mov eax, dword [edi + 0x678]
test eax, eax
jne 0x430078
mov ecx, dword [ebp]
mov eax, dword [ecx - 8]
test eax, eax
je 0x430078
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 0x4300d8
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.004302b0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00593749
lea eax, [esp + 0x20]
mov ecx, ebp
push eax
call fcn.00429580
lea ecx, [esp + 0x1c]
call fcn.005936db
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 0x430093
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.00593749
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
call fcn.00429580
lea ecx, [esp + 0x30]
call fcn.005936db
cmp dword [ebx], 0
jne 0x430159
test esi, esi
je 0x430159
cmp byte [esi], 0
je 0x430159
mov eax, dword [edi + 0xb0c]
cmp eax, 1
jne 0x43012c
mov ecx, dword [edi + 0xdb4]
push 0x54
push 0x69
push ecx
jmp 0x43014f
cmp eax, 2
jne 0x43013e
mov edx, dword [edi + 0xdb4]
push 0x40
push 0x50
push edx
jmp 0x43014f
mov eax, dword [edi + 0xdb4]
push 0x80
push 0xa0
push eax
call fcn.004e03c0
add esp, 0xc
mov dword [ebx], eax
mov eax, dword [ebx]
test eax, eax
je 0x430175
test esi, esi
je 0x430168
cmp byte [esi], 0
jne 0x430175
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx], 0
cmp dword [ebx], 0
je 0x430298
mov eax, dword [esp + 0x34]
and eax, 2
mov dword [esp + 0x20], eax
je 0x430199
push esi
mov ecx, edi
call fcn.004302c0
mov dword [esp + 0x34], eax
jmp 0x4301b7
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4301ad
mov ecx, dword [edi + 0xba8]
mov dword [esp + 0x34], ecx
jmp 0x4301b7
mov edx, dword [edi + 0xba4]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x430298
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov eax, dword [edi + 0xdb4]
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 + 0xb0c]
cmp eax, 1
jne 0x43021d
mov edx, dword [edi + 0xdb4]
push 0xcc0020
push 0xfc
push 0x13b
push 0
push 0
push edx
push 0x54
push 0x69
jmp 0x430261
cmp eax, 2
push 0xcc0020
jne 0x430242
mov eax, dword [edi + 0xdb4]
push 0xfc
push 0x13b
push 0
push 0
push eax
push 0x40
push 0x50
jmp 0x430261
mov ecx, dword [edi + 0xdb4]
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 + 0xdb4]
push edx
push eax
call ebp
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x430298
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