Function at 0x410170
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, 0x5704d8
push edi
call fcn.005040ed
push 0x104
lea eax, [ebp - 0x21c]
mov byte [ebp + 0x27], 0
push 0
push eax
mov edi, 0x1c
call fcn.005073b0
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 0x4101da
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 0x4101fe
cmp edi, 6
jne 0x4103ba
push 0x539bb4
push dword [ebp + 0x20]
call fcn.005103ec
add esp, 8
mov dword [ebp + 0x28], eax
test eax, eax
je 0x4103bf
push eax
call fcn.00510eac
push 2
push 0
push 0
push dword [ebp + 0x28]
mov edi, eax
mov esi, edx
call fcn.00510841
push dword [ebp + 0x28]
call fcn.00510eac
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.00510841
add esp, 0x28
call fcn.00425390
mov esi, eax
test esi, esi
je 0x4103b1
push dword [ebp - 0xc]
push 0x2712
push esi
call fcn.00428490
push edi
push 0x2711
push esi
call fcn.00428490
push 0x4100f0
push 0x4e2b
push esi
call fcn.00428490
push 0
push 0x2b
push esi
call fcn.00428490
push 5
push 0x44
push esi
call fcn.00428490
push 1
push 0x34
push esi
call fcn.00428490
add esp, 0x48
push 0x40ffa0
push 0x4e58
push esi
call fcn.00428490
push dword [ebp - 0x10]
push 0x2749
push esi
call fcn.00428490
push 0xa
push 0x4e
push esi
call fcn.00428490
push dword [ebp - 4]
push 0xd
push esi
call fcn.00428490
push 1
push 0x13
push esi
call fcn.00428490
push 5
push 0x14
push esi
call fcn.00428490
add esp, 0x48
lea eax, [ebp - 0x118]
push 0xff
push 0
push eax
call fcn.005073b0
push dword [ebp - 0x14]
lea eax, [ebp - 0x118]
push dword [ebp - 0x18]
push str._I64u_
push 0xff
push eax
call fcn.00410430
lea eax, [ebp - 0x118]
push eax
push 0x2717
push esi
call fcn.00428490
push esi
call fcn.004253f0
mov edi, eax
add esp, 0x30
test edi, edi
jne 0x410394
mov byte [ebp + 0x27], 1
cmp ebx, 0xffffffff
je 0x41035c
mov eax, dword [ebp - 4]
dec ebx
dec eax
mov dword [ebp - 4], eax
test eax, eax
jle 0x4103ae
test ebx, ebx
jle 0x4103ae
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x200002
push esi
call fcn.00425370
cmp dword [ebp - 8], 0x190
push esi
sbb al, al
and byte [ebp + 0x27], al
call fcn.00425350
push dword [ebp + 0x28]
call fcn.00510528
add esp, 0x14
jmp 0x4101f0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x2a
je 0x4103ae
cmp edi, 0x1c
jne 0x410347
cmp ebx, 0xffffffff
je 0x41035c
mov edi, dword [ebp + 0x28]
push edi
call fcn.00510528
add esp, 4
mov bl, byte [ebp + 0x27]
jmp 0x4103c1
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x4103f1
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4103e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410427
push ecx
push edx
call fcn.005040df
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 0x41041e
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.0050b3af
int3