Function at 0x1008fc40
Capabilities:
Check if file exists
Create directory
Download url
Get file attributes
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1030cb40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x1008fc5c
lea eax, [ebp - 0x1c]
mov ecx, 0x102f9a70
push eax
call fcn.1004dcd0
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
mov ecx, 0x10347220
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.10054310
mov ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x1008fcb0
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008fca6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008fcfa
push ecx
push edx
call fcn.1010f1fa
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, 0x102f9a88
push eax
call fcn.1004efd0
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
mov ecx, 0x10347250
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.10054310
mov ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x1008fd0a
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008fd00
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008fd00
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010f1fa
add esp, 8
cmp dword [0x10347234], 0xf
mov eax, 0x10347220
cmova eax, dword [0x10347220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1008fd38
call esi
cmp eax, 2
je 0x1008fd3d
test bl, 0x10
jne 0x1008fd59
cmp dword [0x10347234], 0xf
mov eax, 0x10347220
push 0
cmova eax, dword [0x10347220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [0x10347264], 0xf
mov eax, 0x10347250
cmova eax, dword [0x10347250]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1008fd81
call esi
cmp eax, 2
je 0x1008fd86
test bl, 0x10
jne 0x1008fda2
cmp dword [0x10347264], 0xf
mov eax, 0x10347250
push 0
cmova eax, dword [0x10347250]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x34]
mov ecx, 0x102f9ad8
push eax
call fcn.10086d90
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x34]
mov ecx, 0x102f9aa8
cmova esi, dword [ebp - 0x34]
push eax
call fcn.10062f50
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
push 0
cmova eax, dword [ebp - 0x1c]
push 0x10
push esi
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov ecx, dword [ebp - 8]
mov esi, eax
cmp ecx, 0xf
jbe 0x1008fe13
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008fe09
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008fe4b
push ecx
push edx
call fcn.1010f1fa
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp ecx, 0xf
jbe 0x1008fe5b
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008fe51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008fe51
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010f1fa
add esp, 8
test esi, esi
jne 0x1008ff29
lea eax, [ebp - 0x34]
mov ecx, 0x102f9b50
push eax
call fcn.10086d90
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x34]
mov ecx, 0x102f9b20
cmova esi, dword [ebp - 0x34]
push eax
call fcn.10062f50
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
push 0
cmova eax, dword [ebp - 0x1c]
push 0x10
push esi
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov ecx, dword [ebp - 8]
mov esi, eax
cmp ecx, 0xf
jbe 0x1008fed4
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008feca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008ff0c
push ecx
push edx
call fcn.1010f1fa
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp ecx, 0xf
jbe 0x1008ff1c
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008ff12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008ff12
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010f1fa
add esp, 8
test esi, esi
jne 0x1008ff29
jmp 0x1008ff29
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010f522
mov esp, ebp
pop ebp
ret