Function at 0x466b20
Capabilities:
Check http status code
Delete file
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da3f4
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x52de08]
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 0x467234
mov eax, dword [esi + 0x54]
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46723b
lea ecx, [ebp - 0x88]
call fcn.00463e90
mov dword [ebp - 4], ebx
push str..part
lea ecx, [ebp - 0x28]
call fcn.00409830
mov byte [ebp - 4], 1
push eax
lea edx, [esi + 0x24]
push edx
lea eax, [ebp + 8]
push eax
call fcn.004225e0
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 0x466bda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x80]
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
cmp ecx, ebx
je 0x466bfc
mov edx, dword [ebp + 8]
push edx
call fcn.0040b710
jmp 0x466c06
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x466cf2
call fcn.0040b660
cmp eax, ebx
jl 0x466ff3
mov edx, dword [ebp - 0x84]
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 0x466c47
call fcn.0040b660
cmp eax, ebx
jl 0x46709b
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x84]
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 0x466c76
call fcn.0040b660
test eax, eax
js 0x4670eb
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 0x466ca4
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00419f20
mov edx, dword [ebp - 0x2c]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xf
mov ecx, edi
or ecx, ebx
je 0x466cfd
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.00407560
mov eax, dword [esi + 0x30]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004104a0
jmp 0x466d09
mov dword [ebp - 0x84], eax
jmp 0x466c1c
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.00412bf0
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
fld qword [0x4e7e78]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x466f2a
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x11
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 0x13
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 0x15
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.00416160
add esp, 0x18
mov byte [ebp - 4], 0x18
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466db8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x1a
add ebx, 0xfffffff0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466dd8
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [ebp - 4], 0x1c
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 0x466dfb
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 [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x1f
mov edi, dword [ebp - 0x4c]
push 0x4e808c
lea ecx, [ebp - 0x1c]
call fcn.00409830
mov byte [ebp - 4], 0x20
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x88]
push eax
push 0
lea ecx, [esi + 0x1c]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ecx, edi
call fcn.00417a50
mov byte [ebp - 4], 0x1f
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 0x466e7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x1c
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 0x466e9d
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 0x466ef0
mov eax, dword [esi + 0x54]
push 0x1f4
push eax
call edi
test eax, eax
je 0x46713b
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 0x466ec0
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 0x466fca
mov eax, dword [eax + 0x64]
cmp eax, 0xc8
je 0x466f1e
cmp eax, 0xce
jne 0x466fca
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x50]
call fcn.0040eeb0
mov ecx, dword [esi + 0x20]
lea eax, [esi + 0x20]
xor edi, edi
cmp dword [ecx - 0xc], edi
je 0x467189
mov ecx, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x88]
push edx
call fcn.00413200
test al, al
jne 0x467189
mov eax, dword [ebp - 0x84]
mov dword [esi + 0x40], 0xd
cmp eax, edi
je 0x466f71
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x84], 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.00406650
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00406650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00464040
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, dword [ecx + 4]
jge 0x467234
xor ebx, ebx
jmp 0x466b70
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x50]
call fcn.0040eeb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00406650
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00406650
mov dword [ebp - 4], ebx
jmp 0x466fa5
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 0x46701d
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 dword [ebp - 4], 9
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x467045
push eax
call fcn.004aa533
add esp, 4
mov al, 8
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov byte [ebp - 4], al
lea edx, [ebp - 0x84]
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x84]
cmp eax, ebx
je 0x467076
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x88], 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 0x4670c5
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 - 0x88]
call fcn.00464040
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 0x467115
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 - 0x88]
call fcn.00464040
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
lea ecx, [ebp - 0x50]
call fcn.004637a0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x50]
call fcn.0040eeb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00406650
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00406650
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x88]
call fcn.00464040
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 - 0x84]
cmp eax, edi
je 0x4671a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x84], edi
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 8]
push eax
push ecx
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 0x4671eb
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 0x46720e
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 - 0x88]
call fcn.00464040
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