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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
mov esi, dword [ebp + 0x24]
mov ecx, 0x56c4c5
push edi
call fcn.00500c8d
push 0x104
lea eax, [ebp - 0x21c]
mov byte [ebp + 0x27], 0
push 0
push eax
mov edi, 0x1c
call fcn.00503f20
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 [ebp - 0xc], eax
lea eax, [ebp - 0x21c]
cmovne eax, esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c46a
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0x28]
xor eax, eax
test ecx, ecx
cmovg eax, ecx
or ebx, 0xffffffff
test ecx, ecx
mov dword [ebp - 4], eax
cmovg ebx, ecx
nop
cmp edi, 0x1c
je 0x40c48e
cmp edi, 6
jne 0x40c64a
push 0x536b48
push dword [ebp + 0x20]
call fcn.0050ce08
add esp, 8
mov dword [ebp + 0x28], eax
test eax, eax
je 0x40c64f
push eax
call fcn.0050d8c8
push 2
push 0
push 0
push dword [ebp + 0x28]
mov edi, eax
mov esi, edx
call fcn.0050d25d
push dword [ebp + 0x28]
call fcn.0050d8c8
push 0
push esi
push edi
mov edi, dword [ebp + 0x28]
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call fcn.0050d25d
add esp, 0x28
call fcn.004218f0
mov esi, eax
test esi, esi
je 0x40c641
push dword [ebp - 0xc]
push 0x2712
push esi
call fcn.004249f0
push edi
push 0x2711
push esi
call fcn.004249f0
push 0x40c380
push 0x4e2b
push esi
call fcn.004249f0
push 0
push 0x2b
push esi
call fcn.004249f0
push 5
push 0x44
push esi
call fcn.004249f0
push 1
push 0x34
push esi
call fcn.004249f0
add esp, 0x48
push 0x40c230
push 0x4e58
push esi
call fcn.004249f0
push dword [ebp - 0x10]
push 0x2749
push esi
call fcn.004249f0
push 0xa
push 0x4e
push esi
call fcn.004249f0
push dword [ebp - 4]
push 0xd
push esi
call fcn.004249f0
push 1
push 0x13
push esi
call fcn.004249f0
push 5
push 0x14
push esi
call fcn.004249f0
add esp, 0x48
lea eax, [ebp - 0x118]
push 0xff
push 0
push eax
call fcn.00503f20
push dword [ebp - 0x14]
lea eax, [ebp - 0x118]
push dword [ebp - 0x18]
push str._I64u_
push 0xff
push eax
call fcn.0040c6c0
lea eax, [ebp - 0x118]
push eax
push 0x2717
push esi
call fcn.004249f0
push esi
call fcn.00421950
mov edi, eax
add esp, 0x30
test edi, edi
jne 0x40c624
mov byte [ebp + 0x27], 1
cmp ebx, 0xffffffff
je 0x40c5ec
mov eax, dword [ebp - 4]
dec ebx
dec eax
mov dword [ebp - 4], eax
test eax, eax
jle 0x40c63e
test ebx, ebx
jle 0x40c63e
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x200002
push esi
call fcn.004218d0
cmp dword [ebp - 8], 0x190
push esi
sbb al, al
and byte [ebp + 0x27], al
call fcn.004218b0
push dword [ebp + 0x28]
call fcn.0050cf44
add esp, 0x14
jmp 0x40c480
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x2a
je 0x40c63e
cmp edi, 0x1c
jne 0x40c5d7
cmp ebx, 0xffffffff
je 0x40c5ec
mov edi, dword [ebp + 0x28]
push edi
call fcn.0050cf44
add esp, 4
mov bl, byte [ebp + 0x27]
jmp 0x40c651
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40c681
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c677
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c6b7
push ecx
push edx
call fcn.00500c7f
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 0x40c6ae
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.00507f1f
int3