Function at 0x46ef10
Capabilities:
Copy file
Delete file
Extract http body

Disassembly:
push 0xffffffffffffffff
push 0x50f1a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ec
push ebx
push edi
mov edi, dword [esp + 0x310]
xor ebx, ebx
cmp edi, 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
jl 0x46f4aa
cmp dword [esp + 0x314], 1
jl 0x46f4aa
mov ecx, dword [esp + 0x308]
push ebp
mov ebp, dword [esp + 0x308]
push esi
lea eax, [esp + 0x48]
push 1
push eax
push ebx
push ecx
push ebp
call fcn.0046f4d0
add esp, 0x14
test eax, eax
je 0x46f48d
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
sub esi, ecx
cmp esi, 0x3e8
jle 0x46ef9a
mov esi, 0x3e8
mov eax, esi
imul eax, dword [esp + 0x31c]
cdq
idiv edi
cmp esi, 0x64
mov edi, eax
jle 0x46f48d
cmp edi, 0x64
jle 0x46f48d
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0xa
push 0xa
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esp + 0x28], eax
call fcn.0048ea80
mov ebp, eax
xor edx, edx
mov ecx, dword [esp + 0x20]
add esp, 4
mov dx, word [ebp + 0xe]
lea eax, [esp + 0x40]
shr edx, 3
imul edx, esi
imul edx, esi
push ebx
push ebx
push eax
push ebx
push ebp
mov dword [ebp + 4], esi
mov dword [ebp + 8], edi
mov dword [ebp + 0x14], edx
push ecx
mov dword [esp + 0x58], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x46f21f
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x30c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x30c]
push 2
push edi
push esi
push ebx
push ebx
mov dword [esp + 0x64], esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
push edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], edi
call esi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x310]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, dword [eax]
mov dword [esp + 0x30c], 1
mov dword [esp + 0x38], ebx
call dword [ecx + 0x48]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x46f112
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
push str._D_3
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jge 0x46f0c7
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x46f0c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x46f0e1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
cmp eax, ebx
mov dword [esp + 0x38], edx
je 0x46f0dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x38]
cmp edi, ebx
mov dword [esp + 0x10], eax
jge 0x46f0fb
cmp edi, 0x80004002
je 0x46f0fb
push edi
call fcn.0050c8bb
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x46f112
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
push ecx
push 1
push eax
call dword [sym.imp.ole32.dll_OleDraw]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x7c]
sub edx, eax
mov eax, dword [esp + 0x80]
push 2
mov ecx, dword [esp + 0x310]
push edx
mov edx, dword [esp + 0x80]
sub eax, edx
push eax
push ebx
push ebx
push ebx
push ecx
call esi
mov esi, dword [esp + 0x34]
lea edx, [esp + 0xd8]
push edx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x46f1e1
mov eax, dword [esp + 0x1c]
push eax
push esi
call fcn.0048ee90
add esp, 8
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x46f1e1
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x46f19b
mov ecx, dword [esp + 0x28]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], 0x5147c4
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x46f19d
xor esi, esi
push 0x234
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov byte [esp + 0x304], 2
je 0x46f1c3
mov ecx, eax
call fcn.0048d850
jmp 0x46f1c5
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x304], 1
mov dword [esp + 0x18], eax
je 0x46f1e1
cmp esi, ebx
je 0x46f1e1
push esi
mov ecx, eax
call fcn.0048deb0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x30]
mov byte [esp + 0x304], bl
cmp eax, ebx
je 0x46f206
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x304], 0xffffffff
cmp eax, ebx
je 0x46f21f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x46f239
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x46f248
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp ebp, ebx
je 0x46f266
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x46f47f
mov eax, dword [esp + 0x30c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
cmp esi, ebx
je 0x46f477
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x8c]
mov edx, dword [esp + 0x31c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x318]
push ebx
lea eax, [esp + 0x30]
mov dword [esp + 0x90], ecx
push ebx
push eax
lea ecx, [esp + 0x94]
push ebx
push ecx
push ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0xa0], 0x28
mov dword [esp + 0xa8], edx
mov word [esp + 0xac], 1
mov word [esp + 0xae], 0x20
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x318]
lea ecx, [esp + 0x58]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x31c]
push ebx
push ecx
push esi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
call dword [sym.imp.USER32.dll_FillRect]
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.0048ea60
mov ecx, dword [eax]
push 1
add ecx, 0xffffffd8
push ebx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x320]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x324]
mov dword [esp + 0x78], eax
mov eax, ecx
imul eax, edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x70], ebx
cdq
idiv dword [esp + 0x320]
mov dword [esp + 0x74], ebx
push eax
push ecx
push 0xa
push 0xa
lea ecx, [esp + 0x80]
push 1
push ecx
push esi
mov ecx, edi
call fcn.0048dfb0
mov ecx, edi
call fcn.0048da40
mov edx, dword [esp + 0x314]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0xf2]
mov word [esp + 0xf0], bx
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xf4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0xf0]
push str..tmp.png
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push esi
lea edx, [esp + 0xf4]
push ebp
push edx
call fcn.0048efc0
mov dword [esp + 0x2c], eax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0xc4]
mov dword [esp + 0xc0], ebx
add esp, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0xb4]
lea ecx, [esp + 0xf0]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [esp + 0xd4], 0x3e8
jbe 0x46f455
mov edx, dword [esp + 0x314]
push ebx
lea eax, [esp + 0xf4]
push edx
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0xf0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x24]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp ebp, ebx
je 0x46f46c
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x46f48d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
pop esi
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x2ec]
mov dword fs:[0], ecx
add esp, 0x2f8
ret
mov ecx, dword [esp + 0x2f4]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f8
ret