Function at 0x465b00
Capabilities:
Delete file
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523e10
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x54]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call ebx
mov ecx, dword [esi + 0x50]
push ecx
call ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp dword [edi + 4], ebx
jle 0x4661dc
mov eax, dword [esi + 0x54]
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4661e3
lea ecx, [ebp - 0x74]
call fcn.004630a0
mov dword [ebp - 4], ebx
push str..part
lea ecx, [ebp - 0x28]
call fcn.004095e0
mov byte [ebp - 4], 1
push eax
lea edx, [esi + 0x24]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0041f010
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465bb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x6c]
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
cmp ecx, ebx
je 0x465bd9
mov edx, dword [ebp + 8]
push edx
call fcn.0040b3a0
jmp 0x465be3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x465cc9
call fcn.0040b2f0
cmp eax, ebx
jl 0x465fb8
mov edx, dword [ebp - 0x70]
lea ecx, [ebp - 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x3c], edi
cmp edi, 0xffffffff
jne 0x465c21
call fcn.0040b2f0
cmp eax, ebx
jl 0x466037
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x38]
push 0
lea eax, [ebp - 0x40]
push eax
push edi
push ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x465c4d
call fcn.0040b2f0
test eax, eax
js 0x466085
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test eax, eax
jne 0x465c7b
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x14]
push esi
call fcn.004158a0
mov edx, dword [ebp - 0x2c]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x18
mov ecx, edi
or ecx, ebx
je 0x465cd1
mov edx, dword [esi]
mov eax, dword [edx + 4]
push edi
mov ecx, esi
call eax
push edi
lea ecx, [ebp - 0x10]
push str.Range:_bytes_d__r_n
push ecx
call fcn.00407500
mov eax, dword [esi + 0x30]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f630
jmp 0x465cdd
mov dword [ebp - 0x70], eax
jmp 0x465bf9
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.00411920
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
fld qword [0x531e18]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x465efb
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x1a
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 0x1c
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x34]
push eax
push 0
lea ecx, [esi + 0x2c]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x50], vtable.winhttp::async_client.0
call fcn.00423c60
add esp, 0x18
mov byte [ebp - 4], 0x21
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465d8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x23
add ebx, 0xfffffff0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465dac
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [ebp - 4], 0x25
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465dcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x98], esi
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x28
mov edi, dword [ebp - 0x4c]
push 0x533ed4
lea ecx, [ebp - 0x1c]
call fcn.004095e0
mov byte [ebp - 4], 0x29
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x74]
push eax
push 0
lea ecx, [esi + 0x1c]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ecx, edi
call fcn.00426670
mov byte [ebp - 4], 0x28
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465e4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x25
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465e6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0x94]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
push eax
call edi
cmp eax, 0x102
setne al
test al, al
jne 0x465ec1
mov eax, dword [esi + 0x54]
push 0x1f4
push eax
call edi
test eax, eax
je 0x4660ef
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x94]
push 0x1f4
push eax
call edi
cmp eax, 0x102
setne al
test al, al
je 0x465e91
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x60]
mov dword [esi + 0x40], ecx
mov ecx, dword [eax + 0x64]
mov dword [esi + 0x44], ecx
cmp dword [eax + 0x60], 0
jne 0x465f8f
mov eax, dword [eax + 0x64]
cmp eax, 0xc8
je 0x465eef
cmp eax, 0xce
jne 0x465f8f
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x50]
call fcn.0041e2c0
mov ecx, dword [esi + 0x20]
lea eax, [esi + 0x20]
xor edi, edi
cmp dword [ecx - 0xc], edi
je 0x46613a
mov ecx, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x74]
push edx
call fcn.00411c50
test al, al
jne 0x46613a
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x40], 0xd
cmp eax, edi
je 0x465f39
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x70], edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.004064c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004064c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00463240
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ecx + 4]
jge 0x4661dc
xor ebx, ebx
jmp 0x465b50
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x50]
call fcn.0041e2c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.004064c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004064c0
mov dword [ebp - 4], ebx
jmp 0x465f6d
mov dword [esi + 0x58], 2
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465fe2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 8
mov dword [ebp - 4], eax
lea edx, [ebp - 0x70]
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x70]
cmp eax, ebx
je 0x466015
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x74], vtable.winhttp::receive_buffer.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x58], 2
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466061
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 0xe
mov dword [ebp - 4], eax
lea edx, [ebp - 0x70]
mov dword [ebp - 0x34], edx
jmp 0x466001
mov dword [esi + 0x58], 2
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4660af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0x12
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 0x14
mov dword [ebp - 4], eax
lea edx, [ebp - 0x70]
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x466015
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x70], 0
jmp 0x466015
lea ecx, [ebp - 0x50]
call fcn.00463060
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x50]
call fcn.0041e2c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.004064c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004064c0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x74]
call fcn.00463240
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x46614b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x70], edi
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x24]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov dword [esi + 0x58], 3
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466196
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4661b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00463240
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x58], 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4