Function at 0x420380
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575738
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5dbcc8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x4a0]
mov edx, dword [eax + 0xc]
add ecx, 0x4a0
call edx
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [esi + 0x34], ecx
mov dword [esi + 0x28], ecx
mov dword [ebp - 0x14], ecx
cmp eax, ecx
jle 0x420689
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x4a0]
mov edx, dword [eax]
add ecx, 0x4a0
push 0
call edx
cmp dword [esi + 0x18], 0
mov edi, eax
je 0x420676
cmp dword [edi + 0xd30], 0
jne 0x4204cb
lea ecx, [edi + 0x4f4]
mov dword [edi + 0xd34], 1
call dword [sym.imp.HttpLoad.dll_public:_void___thiscall_CHttpLoadThreads::StopLoad_void_]
mov esi, dword [edi + 0xdc8]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x420445
cmp eax, dword [esi - 0x10]
jne 0x420445
lea ebx, [esi - 0x10]
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x42047d
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4206b7
mov eax, dword [esi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0054703f
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx + 0x18]
add ecx, 0x4a0
push edi
call eax
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call edi
push str..temp
push str..mp4
lea ecx, [ebp - 0x10]
call fcn.00409f60
mov esi, dword [ebp - 0x10]
push esi
call edi
lea eax, [esi - 0x10]
jmp 0x42065a
mov esi, dword [edi + 0xd40]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x4204f7
cmp eax, dword [esi - 0x10]
jne 0x4204f7
lea ebx, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x42052f
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4206b7
mov eax, dword [esi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0054703f
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 1
mov esi, dword [edi + 0xdc8]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x420568
cmp eax, dword [esi - 0x10]
jne 0x420568
lea ebx, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4205a0
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4206b7
mov eax, dword [esi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0054703f
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x4a0]
mov eax, dword [edx + 0x18]
add ecx, 0x4a0
push edi
call eax
mov ecx, dword [0x5e8858]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
mov edi, dword [ebp - 0x10]
test al, al
je 0x420630
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x4206bc
mov eax, dword [0x5e6ec0]
mov ecx, edi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420616
test dx, dx
je 0x420612
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420616
add eax, 4
add ecx, 4
test dx, dx
jne 0x4205f0
xor eax, eax
jmp 0x42061b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x420630
push 1
mov ecx, 0x5e6c4c
call fcn.00414e40
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420657
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420676
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x18]
jl 0x4203d5
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42069c
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0x5a9168
call eax
mov dword [esi + 0x24], 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
call fcn.0040d700
push 0x80004005
call fcn.0040d6e0
int3