Function at 0x40e6b4
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x48d250]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x6c
mov eax, 0x46f3f6
call fcn.004500f0
xor ebx, ebx
push str.idlimage.temp
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.0040161d
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00406b88
pop ecx
mov eax, dword [ebp - 0x24]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00401503
lea eax, [ebp - 0x1c]
push eax
call fcn.0040e631
pop ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040e08f
push ebx
push ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 4
call fcn.0040393d
push ecx
lea eax, [ebp + 0x214]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 5
call fcn.0040393d
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040e4aa
cmp al, bl
jne 0x40e7a1
push ecx
lea eax, [ebp + 0x214]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.0040393d
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.i_temp.temp
mov byte [ebp - 4], 6
call fcn.0040161d
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.download_image_error
mov byte [ebp - 4], 7
call fcn.0040161d
mov byte [ebp - 4], 4
call fcn.0040758d
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.00411206
push dword [ebp - 0x10]
lea eax, [ebp + 0x104]
push eax
mov byte [ebp - 4], 8
call fcn.00452da0
pop ecx
pop ecx
lea eax, [ebp + 0x104]
push eax
lea ecx, [ebp - 0x60]
call fcn.00411227
test eax, eax
jle 0x40e7eb
push dword [ebp - 0x1c]
lea eax, [ebp]
push eax
call fcn.00452da0
pop ecx
pop ecx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x60]
call fcn.004113f5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x10
mov dword [ebp - 0x28], eax
call fcn.0042c065
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x40e81c
mov ecx, eax
call fcn.00432387
mov esi, eax
jmp 0x40e81e
xor esi, esi
push dword [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.004328f3
lea ecx, [ebp - 0x3c]
call fcn.00432387
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.00432387
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call fcn.0040e5cc
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040e5cc
push 8
call fcn.0042c065
pop ecx
cmp eax, ebx
je 0x40e86d
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
mov esi, eax
jmp 0x40e86f
xor esi, esi
push dword [ebp - 0x1c]
call fcn.0040e576
pop ecx
push eax
mov ecx, esi
call fcn.00432bc3
cmp esi, ebx
jne 0x40e888
xor eax, eax
jmp 0x40e88b
mov eax, dword [esi + 4]
push eax
push dword [ebp - 0x38]
call fcn.00432ca2
lea eax, [ebp - 0x78]
push eax
push 0x18
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x74]
mov esi, dword [ebp + 0x220]
mov edi, dword [ebp + 0x224]
sub esi, dword [ebp + 0x218]
sub edi, dword [ebp + 0x21c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x70]
push 8
mov dword [ebp - 0x20], eax
call fcn.0042c065
pop ecx
cmp eax, ebx
je 0x40e8e1
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
mov dword [ebp - 0x18], eax
jmp 0x40e8e4
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x18]
push edi
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.0040e5a8
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x40e8fd
xor eax, eax
jmp 0x40e900
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x48]
call fcn.00432ca2
push 4
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 0xcc0020
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push ebx
push ebx
push dword [ebp - 0x38]
push edi
push esi
push ebx
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x40e94e
mov ebx, dword [eax + 4]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.00432970
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.00432970
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.0040e09f
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040e098
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004010dc
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010dc
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004010dc
mov ecx, dword [ebp + 0x214]
add ecx, 0xfffffff0
call fcn.004010dc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004500e1
add ebp, 0x20c
leave
ret