Function at 0x496bd0
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x57e331
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
mov eax, dword [ebp + 0x3b0]
lea esi, [ebp + 0x3b0]
sub eax, 0x10
call fcn.00410660
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x4c], ebx
cmp dword [ebp + 0x3ac], 0x384
jne 0x496c45
cmp dword [ebp + 0x39c], ebx
je 0x496c45
lea eax, [ebp + 0x3bc]
lea edi, [esp + 0x14]
call fcn.004101e0
mov dword [ebp + 0x39c], ebx
lea eax, [esp + 0x14]
mov edi, esi
call fcn.004101e0
mov eax, dword [ebp + 0x3c0]
mov ecx, dword [eax - 0xc]
add ebp, 0x3c0
cmp ecx, ebx
je 0x496c6c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x496ce5
xor edi, edi
lea ebx, [esp + 0x1c]
call fcn.004125d0
push eax
lea eax, [esp + 0x1c]
push eax
mov ebx, str.datahttprootuser_
mov byte [esp + 0x54], 1
call fcn.0041a8a0
add esp, 8
mov edi, ebp
mov byte [esp + 0x4c], 2
call fcn.004101e0
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496cc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496ce5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 5
lea esi, [esp + 0x28]
call fcn.00405010
mov byte [esp + 0x4c], 3
cmp dword [eax + 0x18], 0x10
jb 0x496d03
mov ecx, dword [eax + 4]
jmp 0x496d06
lea ecx, [eax + 4]
lea edx, [esp + 0x18]
push edx
call fcn.00441ee0
lea eax, [esp + 0x24]
mov byte [esp + 0x4c], 4
mov ecx, dword [ebp]
push eax
call fcn.004124c0
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov ebx, eax
mov byte [esp + 0x54], 5
call fcn.00413170
push eax
lea eax, [esp + 0x28]
push eax
mov ebx, str..jpg
mov byte [esp + 0x5c], 6
call fcn.0041a8a0
add esp, 0x10
mov edi, ebp
mov byte [esp + 0x4c], 7
call fcn.004101e0
mov byte [esp + 0x4c], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496d84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496da9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496dce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496df3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [esp + 0x54]
mov ecx, dword [edx + 0x388]
cmp ecx, 1
mov eax, 4
je 0x496e37
cmp ecx, 3
jne 0x496e20
lea eax, [ecx + 4]
jmp 0x496e37
cmp ecx, 2
jne 0x496e37
xor eax, eax
cmp dword [edx + 0x380], 0x193
setne al
add eax, 5
lea ecx, [esp + 0x54]
push ecx
push edx
mov dword [esp + 0x5c], eax
call fcn.00495990
mov ebp, dword [ebp]
mov esi, dword [esp + 0x14]
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esi - 0x10]
mov dword [esp + 0x4c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x496e7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4