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

Disassembly:
push 0xffffffffffffffff
push 0x515444
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 0x471c1a
cmp dword [esp + 0x314], 1
jl 0x471c1a
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.00471c40
add esp, 0x14
test eax, eax
je 0x471bfd
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
sub esi, ecx
cmp esi, 0x3e8
jle 0x47170a
mov esi, 0x3e8
mov eax, esi
imul eax, dword [esp + 0x31c]
cdq
idiv edi
cmp esi, 0x64
mov edi, eax
jle 0x471bfd
cmp edi, 0x64
jle 0x471bfd
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.004913c0
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 0x47198f
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 0x471882
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 0x471837
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x471833
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x471851
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
cmp eax, ebx
mov dword [esp + 0x38], edx
je 0x47184d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x38]
cmp edi, ebx
mov dword [esp + 0x10], eax
jge 0x47186b
cmp edi, 0x80004002
je 0x47186b
push edi
call fcn.00512a47
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x471882
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 0x471951
mov eax, dword [esp + 0x1c]
push eax
push esi
call fcn.004917d0
add esp, 8
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x471951
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x47190b
mov ecx, dword [esp + 0x28]
lea eax, [esi + 4]
push eax
push ecx
mov dword [esi], 0x51a7fc
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x47190d
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 0x471933
mov ecx, eax
call fcn.00490140
jmp 0x471935
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x304], 1
mov dword [esp + 0x18], eax
je 0x471951
cmp esi, ebx
je 0x471951
push esi
mov ecx, eax
call fcn.004907f0
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 0x471976
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x304], 0xffffffff
cmp eax, ebx
je 0x47198f
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 0x4719a9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4719b8
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 0x4719d6
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x471bef
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 0x471be7
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.004913a0
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.004908f0
mov ecx, edi
call fcn.00490320
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.00491900
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 0x471bc5
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 0x471bdc
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 0x471bfd
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