Function at 0x46e684
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3b14
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x524330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 4], 0
push 8
call fcn.0049811a
pop ecx
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x5c], 0
je 0x46e6e1
mov ecx, dword [ebp - 0x5c]
call fcn.0043be63
mov eax, dword [ebp - 0x5c]
mov dword [eax], vtable.CBitmap.0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xd4], eax
jmp 0x46e6e8
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x10], eax
cmp dword [0x522a9c], 0xfffffffe
jne 0x46e71a
push 0x525f7c
push str.image_bmp
call fcn.0046e569
pop ecx
pop ecx
mov dword [0x522a9c], eax
cmp dword [0x522a9c], 0xffffffff
je 0x46ea32
lea ecx, [ebp + 8]
call fcn.00449814
push eax
lea ecx, [ebp - 0x18]
call fcn.0046ed63
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x18]
call fcn.0046ed28
push eax
call fcn.0046eae5
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
je 0x46e9d9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa8], eax
push 0
push 0x525f7c
push dword [ebp - 0xa8]
mov eax, dword [ebp - 0x20]
push dword [eax + 4]
call sub.gdiplus.dll_GdipSaveImageToStream
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x46e7b8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xa0]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
jmp 0x46e7c4
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0xffffffff
je 0x46e9d9
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x34], eax
push 0x10
call fcn.0049811a
pop ecx
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x64], 0
je 0x46e801
mov ecx, dword [ebp - 0x64]
call fcn.004a5e05
mov dword [ebp - 0xd8], eax
jmp 0x46e808
and dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x34]
call fcn.004a627a
lea ecx, [ebp - 0x48]
call fcn.004a5e05
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004a5e05
mov byte [ebp - 4], 5
cmp dword [ebp - 0x50], 0
jne 0x46e84a
and dword [ebp - 0xdc], 0
jmp 0x46e856
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 4]
mov dword [ebp - 0xdc], eax
push dword [ebp - 0xdc]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x48]
call fcn.004a628e
cmp dword [ebp - 0x50], 0
jne 0x46e87a
and dword [ebp - 0xe0], 0
jmp 0x46e886
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 4]
mov dword [ebp - 0xe0], eax
push dword [ebp - 0xe0]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0x30]
call fcn.004a628e
push 8
call fcn.0049811a
pop ecx
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x46e8d0
mov eax, dword [ebp - 0x6c]
mov dword [eax], vtable.CGdiObject.0
mov eax, dword [ebp - 0x6c]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x6c]
mov dword [eax], vtable.CBitmap.0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xe4], eax
jmp 0x46e8d7
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x38], eax
push 0
push dword [ebp - 0x14]
call fcn.0046ec5d
pop ecx
pop ecx
mov dword [ebp - 0x54], eax
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xb4], eax
push dword [ebp - 0xb4]
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x54]
push dword [eax + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x46e942
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xb8]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
jmp 0x46e94e
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x38]
call fcn.004a654a
cmp dword [ebp - 0x38], 0
jne 0x46e968
and dword [ebp - 0xe8], 0
jmp 0x46e974
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 4]
mov dword [ebp - 0xe8], eax
push dword [ebp - 0xe8]
push dword [ebp - 0x44]
call fcn.004a664f
push dword [ebp - 0x34]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x46e9b4
push 1
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x74]
call dword [eax + 4]
mov dword [ebp - 0xec], eax
jmp 0x46e9bb
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004a62f7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.004a62f7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 8]
cmp dword [ebp - 0x20], 0
je 0x46ea17
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x46ea10
push 1
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x7c]
call dword [eax]
mov dword [ebp - 0xf0], eax
jmp 0x46ea17
and dword [ebp - 0xf0], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
sub eax, 0x10
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
call fcn.0040110c
push ecx
mov eax, esp
mov dword [ebp - 0x84], esp
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 8]
sub eax, 0x10
mov dword [ebp - 0xc4], eax
push dword [ebp - 0xc4]
call fcn.004042f4
pop ecx
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
add eax, 0x10
mov ecx, dword [ebp - 0xcc]
mov dword [ecx], eax
call fcn.0046bd1d
pop ecx
mov byte [ebp - 0xf1], al
movzx eax, byte [ebp - 0xf1]
test eax, eax
je 0x46ea90
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x10], 0
jne 0x46ea9f
and dword [ebp - 0xf8], 0
jmp 0x46eaab
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x88], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
sub eax, 0x10
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
call fcn.0040110c
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret