Function at 0x40c7b0
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, 0x524e73
call fcn.004e6414
push 0x104
lea eax, [esp + 0x134]
mov byte [esp + 0x17], 0
push 0
push eax
mov edi, 0x1c
call fcn.004bc490
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 0x40c825
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 0x40c84e
cmp edi, 6
jne 0x40ca4b
push 0x510e70
push dword [ebp + 0x20]
call fcn.004c57c2
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x40ca51
push eax
call fcn.004c5dd0
add esp, 4
mov edi, eax
mov esi, edx
push 2
push 0
push 0
push dword [esp + 0x20]
call fcn.004c60fa
push dword [esp + 0x24]
call fcn.004c5dd0
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.004c60fa
add esp, 0x10
call fcn.0041f350
mov esi, eax
test esi, esi
je 0x40ca42
push dword [esp + 0x20]
push 0x2712
push esi
call fcn.00422530
add esp, 0xc
push edi
push 0x2711
push esi
call fcn.00422530
add esp, 0xc
push 0x40c600
push 0x4e2b
push esi
call fcn.00422530
add esp, 0xc
push 0
push 0x2b
push esi
call fcn.00422530
add esp, 0xc
push 5
push 0x44
push esi
call fcn.00422530
add esp, 0xc
push 1
push 0x34
push esi
call fcn.00422530
add esp, 0xc
push 0x40c640
push 0x4e58
push esi
call fcn.00422530
add esp, 0xc
push dword [esp + 0x24]
push 0x2749
push esi
call fcn.00422530
add esp, 0xc
push 0xa
push 0x4e
push esi
call fcn.00422530
add esp, 0xc
push dword [esp + 0x1c]
push 0xd
push esi
call fcn.00422530
add esp, 0xc
push 1
push 0x13
push esi
call fcn.00422530
add esp, 0xc
push 5
push 0x14
push esi
call fcn.00422530
add esp, 0xc
lea eax, [esp + 0x30]
push 0xff
push 0
push eax
call fcn.004bc490
add esp, 0xc
lea eax, [esp + 0x30]
push dword [esp + 0x28]
push dword [esp + 0x30]
push str._I64u_
push 0xff
push eax
call fcn.0040c2a0
add esp, 0x14
lea eax, [esp + 0x30]
push eax
push 0x2717
push esi
call fcn.00422530
add esp, 0xc
push esi
call fcn.0041f3b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40ca24
mov byte [esp + 0x13], 1
cmp ebx, 0xffffffff
je 0x40c9e1
mov eax, dword [esp + 0x1c]
dec ebx
dec eax
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x40ca3e
test ebx, ebx
jle 0x40ca3e
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0x200002
push esi
call fcn.0041f330
add esp, 0xc
cmp dword [esp + 0x18], 0x190
sbb al, al
and byte [esp + 0x13], al
push esi
call fcn.0041f310
add esp, 4
push dword [esp + 0x14]
call fcn.004c53dd
add esp, 4
jmp 0x40c840
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x2a
je 0x40ca3e
cmp edi, 0x1c
jne 0x40c9ca
cmp ebx, 0xffffffff
je 0x40c9e1
mov edi, dword [esp + 0x14]
push edi
call fcn.004c53dd
add esp, 4
mov bl, byte [esp + 0x13]
jmp 0x40ca53
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40ca83
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ca79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cab9
push ecx
push edx
call fcn.004b8e2a
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 0x40cab0
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.004c05a0
int3