Function at 0x1001a70c
Capabilities:
Check http status code
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1854]
mov eax, 0x1854
call fcn.10033040
push 0xffffffffffffffff
push 0x10047d41
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x1850], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x185c]
mov eax, dword [ebp + 0x1860]
push dword [esi + 0x23c]
mov ebx, dword [ebp + 0x1864]
mov edi, ecx
mov dword [ebp - 0x28], eax
call fcn.100196de
cmp dword [0x1005cb70], 0
mov dword [ebp - 0x24], eax
jne 0x1001a78e
mov esi, dword [esi + 0x224]
lea eax, [esi + 0x40]
add esi, 0x248
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esi
jmp 0x1001a7c2
push ebx
lea ecx, [ebp - 0x10]
call fcn.10008439
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10019984
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call fcn.100199ae
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1001a7c2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
and eax, 2
mov dword [ebp - 0x1c], eax
je 0x1001a8f3
and dword [ebp - 0x10], 0
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x1004b06c
mov dword [ebp - 4], 1
call dword [eax + 0x30]
test eax, eax
je 0x1001a838
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.1000d658
mov ebx, dword [ebp - 0x28]
xor esi, esi
pop ecx
pop ecx
cmp dword [ebx + 8], esi
je 0x1001a838
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, 7
jb 0x1001a838
mov eax, dword [ebx + 8]
mov eax, dword [esi + eax]
test eax, eax
je 0x1001a838
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0xa8]
add esi, 4
cmp esi, 0x190
jb 0x1001a816
and dword [ebp - 0x14], 0
cmp dword [edi + 8], 0
mov byte [ebp - 4], 2
je 0x1001a8d1
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push 0x1004b040
call dword [eax + 0x30]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1001a890
push 0x9ca5
lea ecx, [ebp - 0x28]
call fcn.100107c9
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push dword [ebp - 0x20]
mov byte [ebp - 4], 3
push 1
push 1
push dword [ebp - 0x18]
push esi
call dword [ecx + 0x40]
lea ecx, [ebp - 0x28]
call fcn.1000e380
jmp 0x1001a8d1
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push 0x1004b014
call dword [eax + 0x30]
test eax, eax
jl 0x1001a8b8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push eax
call dword [ecx + 0x2c]
jmp 0x1001a8d1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1001a8d1
push 4
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test eax, eax
je 0x1001a8e2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1001a8f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x10]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x14], ebx
jle 0x1001aa5a
add edi, 0xc
mov dword [ebp - 0x10], edi
push dword [ebp - 0x18]
mov ecx, edi
push dword [ebp - 0x14]
call fcn.100197a7
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1001a93b
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x1001a916
jmp 0x1001aa5a
mov edi, 0x1850
push edi
lea eax, [ebp]
push ebx
push eax
call fcn.10031310
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp], ebx
mov dword [ebp + 4], eax
mov dword [ebp + 8], 2
lea ecx, [ebp - 0x1c]
cmp dword [ebp - 0x1c], ebx
je 0x1001a96d
push 0x9d2c
jmp 0x1001a972
push 0x9d42
call fcn.100107c9
push dword [eax]
lea eax, [ebp + 0xc]
push 0x20
push eax
call fcn.10009101
lea ecx, [ebp - 0x1c]
call fcn.1000e380
push 0x9d1d
lea ecx, [ebp - 0x1c]
call fcn.100107c9
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [eax]
call fcn.100197a7
mov esi, 0x208
add eax, esi
push eax
push ebx
lea eax, [ebp + 0x4c]
push 0x400
push eax
call fcn.1000e4b8
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.1000e380
push 0x9d69
lea ecx, [ebp - 0x28]
call fcn.100107c9
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [eax]
call fcn.100197a7
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.100197a7
add eax, esi
push eax
push ebx
lea eax, [ebp + 0x84c]
push 0x1000
push eax
call fcn.1000e4ec
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.1000e380
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp]
push eax
push 0x13
mov dword [ebp - 4], 4
call fcn.10019871
mov esi, dword [ebp - 0x24]
add esp, 0x10
test eax, eax
je 0x1001aa44
push 0
push esi
mov dword [esi + 0x10], 1
call fcn.1000e08f
pop ecx
pop ecx
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.10019756
test esi, esi
je 0x1001aa5a
push esi
call fcn.10019915
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1850]
xor ecx, ebp
call fcn.10031770
add ebp, 0x1854
leave
ret 0xc