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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523fd0
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 0x46617c
mov eax, dword [esi + 0x54]
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x466183
lea ecx, [ebp - 0x74]
call fcn.00462f40
mov dword [ebp - 4], ebx
push str..part
lea ecx, [ebp - 0x28]
call fcn.00409590
mov byte [ebp - 4], 1
push eax
lea edx, [esi + 0x24]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0041f300
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 0x465b57
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 0x465b79
mov edx, dword [ebp + 8]
push edx
call fcn.0040b380
jmp 0x465b83
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x465c69
call fcn.0040b2d0
cmp eax, ebx
jl 0x465f58
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 0x465bc1
call fcn.0040b2d0
cmp eax, ebx
jl 0x465fd7
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 0x465bed
call fcn.0040b2d0
test eax, eax
js 0x466025
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 0x465c1b
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00415b90
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 0x465c71
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.00407460
mov eax, dword [esi + 0x30]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f910
jmp 0x465c7d
mov dword [ebp - 0x70], eax
jmp 0x465b99
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.00411c00
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
fld qword [0x531e18]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x465e9b
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.00423d60
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 0x465d2c
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 0x465d4c
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 0x465d6f
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.00409590
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.00426780
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 0x465dec
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 0x465e0e
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 0x465e61
mov eax, dword [esi + 0x54]
push 0x1f4
push eax
call edi
test eax, eax
je 0x46608f
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 0x465e31
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 0x465f2f
mov eax, dword [eax + 0x64]
cmp eax, 0xc8
je 0x465e8f
cmp eax, 0xce
jne 0x465f2f
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x50]
call fcn.0041e650
mov ecx, dword [esi + 0x20]
lea eax, [esi + 0x20]
xor edi, edi
cmp dword [ecx - 0xc], edi
je 0x4660da
mov ecx, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x74]
push edx
call fcn.00411f30
test al, al
jne 0x4660da
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x40], 0xd
cmp eax, edi
je 0x465ed9
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.00406ef0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00406ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.004630e0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ecx + 4]
jge 0x46617c
xor ebx, ebx
jmp 0x465af0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x50]
call fcn.0041e650
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00406ef0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00406ef0
mov dword [ebp - 4], ebx
jmp 0x465f0d
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 0x465f82
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 0x465fb5
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 0x466001
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 0x465fa1
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 0x46604f
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 0x465fb5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x70], 0
jmp 0x465fb5
lea ecx, [ebp - 0x50]
call fcn.00462f00
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x50]
call fcn.0041e650
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00406ef0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00406ef0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x74]
call fcn.004630e0
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 0x4660eb
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 0x466136
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 0x466159
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.004630e0
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