Function at 0x42f050
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5980
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
push ecx
push edx
mov dword [ebp - 0x2c], 0x60
call fcn.0042e4d0
mov edi, eax
xor ebx, ebx
add esp, 0xc
mov dword [ebp - 0x30], edi
cmp edi, ebx
jne 0x42f0b1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [esi + 8]
push 0x60
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0xc]
push 0x64
push ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
push eax
push ebx
call fcn.00408930
lea esi, [ebp - 0x68]
call fcn.00417d80
mov eax, dword [edi + 4]
lea edx, [ebp - 0x24]
push edx
push eax
mov dword [ebp - 0x24], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x42f0fc
mov dword [edi + 8], eax
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x14], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x42f113
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x14]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov edi, ecx
mov dword [ebp - 0x48], eax
imul edi, esi
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x58], edi
fild dword [ebp - 0x50]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x44], eax
test esi, esi
jge 0x42f14b
fadd dword [0x4c54a8]
fdivr qword [0x4c54a0]
mov eax, dword [ebp - 0x68]
sub ebx, dword [ebp - 0x5c]
sub ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
xor esi, esi
push esi
push esi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push esi
push eax
lea ebx, [ebp - 0x20]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], ecx
fstp dword [ebp - 0x38]
call fcn.00426e60
add esp, 0x10
mov dword [ebp - 4], esi
mov ebx, dword [ebp - 0x20]
test ebx, ebx
jne 0x42f199
mov dword [ebp - 4], 0xffffffff
jmp 0x42f4f3
mov dx, word [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x1c]
lea ecx, [ebx + 0x4c]
mov word [ebp - 0x1c], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x42f1b0
sub eax, esi
sar eax, 1
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.00403b30
or eax, 0xffffffff
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
push 0x10
mov dword [ebx + 0x18], eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
xor eax, eax
mov dword [ebp - 0x28], eax
cmp esi, eax
je 0x42f215
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push ecx
push eax
push 0x26200a
push eax
push edx
push edi
mov dword [esi], vtable.Gdiplus::Bitmap.0
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov edi, esi
mov dword [esi + 4], eax
mov dword [ebp - 0x28], edi
jmp 0x42f218
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x42f22e
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx]
push ebx
jmp 0x42f4eb
push 8
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x42f3cf
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x1c]
push eax
push ecx
mov dword [ebp - 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov edx, dword [ebp - 0x1c]
mov dword [esi + 4], eax
push 2
mov eax, edx
push eax
mov dword [esi], edx
call sub.gdiplus.dll_GdipSetPixelOffsetMode
cmp eax, ebx
je 0x42f26a
mov dword [esi + 4], eax
mov ecx, dword [esi]
push 4
push ecx
call sub.gdiplus.dll_GdipSetSmoothingMode
cmp eax, ebx
je 0x42f27b
mov dword [esi + 4], eax
mov edi, dword [ebp - 0x24]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
neg eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x24], ebx
cmp dword [ebp + 0x10], ebx
jbe 0x42f3bc
fild dword [ebp - 0x44]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x1c], ebx
fstp dword [ebp - 0x3c]
fild dword [ebp - 0x48]
fstp dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
fild dword [ebp - 0x24]
test eax, eax
jge 0x42f2c8
fadd dword [0x4c54a8]
mov ecx, dword [ebp - 0x14]
fmul dword [ebp - 0x38]
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi]
push 0
fstp dword [ebp - 0x44]
push ecx
push edi
push 0
push edx
push eax
call sub.gdiplus.dll_GdipSetClipRectI
test eax, eax
je 0x42f2ea
mov dword [esi + 4], eax
fldz
mov ecx, dword [esi]
push 0
sub esp, 8
fstp dword [esp + 4]
fild dword [ebp - 0x1c]
fstp dword [esp]
push ecx
call sub.gdiplus.dll_GdipTranslateWorldTransform
test eax, eax
je 0x42f30a
mov dword [esi + 4], eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
mov dword [ebp - 0x60], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
push esi
mov edx, ebx
call fcn.00428650
mov eax, dword [ebp + 8]
push ebx
mov byte [ebp - 4], 0
push eax
mov dword [ebp - 0x60], 0
call dword [sym.imp.USER32.dll_ReleaseDC]
fld dword [ebp - 0x3c]
mov ecx, dword [esi]
push 0
sub esp, 8
fstp dword [esp + 4]
fld dword [ebp - 0x40]
fstp dword [esp]
push ecx
call sub.gdiplus.dll_GdipTranslateWorldTransform
test eax, eax
je 0x42f35f
mov dword [esi + 4], eax
fld dword [ebp - 0x44]
mov edx, dword [esi]
push 0
push ecx
fstp dword [esp]
push edx
call sub.gdiplus.dll_GdipRotateWorldTransform
test eax, eax
je 0x42f377
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x30]
push edi
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [esi]
push ecx
push edx
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
je 0x42f39a
mov dword [esi + 4], eax
mov eax, dword [esi]
push eax
call sub.gdiplus.dll_GdipResetWorldTransform
test eax, eax
je 0x42f3a9
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], edi
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp + 0x10]
jb 0x42f2b8
mov ecx, dword [esi]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipFree
mov edi, dword [ebp - 0x28]
xor ebx, ebx
test byte [0x4e44d0], 1
jne 0x42f40d
or dword [0x4e44d0], 1
mov eax, 0x60
mov dword [0x4e44d4], 0x64
mov dword [0x4e44d8], eax
mov dword [0x4e44dc], eax
mov byte [0x4e44e0], 0
call fcn.0047ae50
test al, al
jne 0x42f40d
call fcn.004088d0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
push edx
push eax
lea esi, [ebp - 0x58]
mov eax, 0x4e44d4
call fcn.0042e270
test al, al
je 0x42f44b
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
push ecx
push edx
mov eax, edi
call fcn.0047ede0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42f44b
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x18]
lea ebx, [ebp - 0x50]
call fcn.0047f2e0
mov ebx, dword [ebp - 0x50]
cmp dword [ebx - 0xc], 0
je 0x42f4be
lea esi, [ebp - 0x4c]
call fcn.00409c10
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x42f4a7
push ecx
mov eax, esp
mov dword [ebp - 0x44], esp
push eax
mov edi, str.disable_resize
call fcn.00409230
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x40], esp
push ecx
mov edi, ebx
call fcn.00409230
mov byte [ebp - 4], 5
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00409b10
mov dword [ebp - 0x34], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov byte [ebp - 4], 2
test esi, esi
je 0x42f4be
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f4de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
test esi, esi
je 0x42f50c
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret