Function at 0x408210
Capabilities:
Check http status code
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], edx
push edi
mov ecx, 0x518caa
call fcn.004dd464
push 0x104
lea eax, [esp + 0x134]
mov byte [esp + 0x17], 0
push 0
push eax
mov edi, 0x1c
call fcn.004b3b60
add esp, 0xc
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
test esi, esi
push dword [ebp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x134]
cmovne eax, esi
mov dword [esp + 0x28], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408285
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
cmovg eax, ecx
or ebx, 0xffffffff
test ecx, ecx
mov dword [esp + 0x1c], eax
cmovg ebx, ecx
nop dword [eax]
cmp edi, 0x1c
je 0x4082ae
cmp edi, 6
jne 0x4084ab
push 0x505c1c
push dword [ebp + 0x20]
call fcn.004bccb3
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4084b1
push eax
call fcn.004bd2c1
add esp, 4
mov edi, eax
mov esi, edx
push 2
push 0
push 0
push dword [esp + 0x20]
call fcn.004bd5eb
push dword [esp + 0x24]
call fcn.004bd2c1
add esp, 0x14
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
push 0
push esi
push edi
mov edi, dword [esp + 0x20]
push edi
call fcn.004bd5eb
add esp, 0x10
call fcn.00416900
mov esi, eax
test esi, esi
je 0x4084a2
push dword [esp + 0x20]
push 0x2712
push esi
call fcn.00419ae0
add esp, 0xc
push edi
push 0x2711
push esi
call fcn.00419ae0
add esp, 0xc
push 0x408060
push 0x4e2b
push esi
call fcn.00419ae0
add esp, 0xc
push 0
push 0x2b
push esi
call fcn.00419ae0
add esp, 0xc
push 5
push 0x44
push esi
call fcn.00419ae0
add esp, 0xc
push 1
push 0x34
push esi
call fcn.00419ae0
add esp, 0xc
push 0x4080a0
push 0x4e58
push esi
call fcn.00419ae0
add esp, 0xc
push dword [esp + 0x24]
push 0x2749
push esi
call fcn.00419ae0
add esp, 0xc
push 0xa
push 0x4e
push esi
call fcn.00419ae0
add esp, 0xc
push dword [esp + 0x1c]
push 0xd
push esi
call fcn.00419ae0
add esp, 0xc
push 1
push 0x13
push esi
call fcn.00419ae0
add esp, 0xc
push 5
push 0x14
push esi
call fcn.00419ae0
add esp, 0xc
lea eax, [esp + 0x30]
push 0xff
push 0
push eax
call fcn.004b3b60
add esp, 0xc
lea eax, [esp + 0x30]
push dword [esp + 0x28]
push dword [esp + 0x30]
push str._I64u_
push 0xff
push eax
call fcn.00407d00
add esp, 0x14
lea eax, [esp + 0x30]
push eax
push 0x2717
push esi
call fcn.00419ae0
add esp, 0xc
push esi
call fcn.00416960
mov edi, eax
add esp, 4
test edi, edi
jne 0x408484
mov byte [esp + 0x13], 1
cmp ebx, 0xffffffff
je 0x408441
mov eax, dword [esp + 0x1c]
dec ebx
dec eax
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x40849e
test ebx, ebx
jle 0x40849e
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0x200002
push esi
call fcn.004168e0
add esp, 0xc
cmp dword [esp + 0x18], 0x190
sbb al, al
and byte [esp + 0x13], al
push esi
call fcn.004168c0
add esp, 4
push dword [esp + 0x14]
call fcn.004bc8ce
add esp, 4
jmp 0x4082a0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x2a
je 0x40849e
cmp edi, 0x1c
jne 0x40842a
cmp ebx, 0xffffffff
je 0x408441
mov edi, dword [esp + 0x14]
push edi
call fcn.004bc8ce
add esp, 4
mov bl, byte [esp + 0x13]
jmp 0x4084b3
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x4084e3
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4084d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408519
push ecx
push edx
call fcn.004b04f5
add esp, 8
mov eax, dword [ebp + 0x20]
or esi, 0xffffffff
mov dword [ebp + 0x18], 0
add eax, 0xfffffff0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x408510
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004b7be0
int3