Function at 0x1008c630
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 [0x102ce4c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x1008c64c
lea eax, [ebp - 0x1c]
mov ecx, 0x102bbc98
push eax
call fcn.1004fb30
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
mov ecx, 0x102d3520
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.100568b0
mov ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x1008c6a0
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008c696
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008c6ea
push ecx
push edx
call fcn.1011033a
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, 0x102bbcb0
push eax
call fcn.10050fd0
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
mov ecx, 0x102d3550
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.100568b0
mov ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x1008c6fa
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008c6f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008c6f0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1011033a
add esp, 8
cmp dword [0x102d3534], 0xf
mov eax, 0x102d3520
cmova eax, dword [0x102d3520]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1008c728
call esi
cmp eax, 2
je 0x1008c72d
test bl, 0x10
jne 0x1008c749
cmp dword [0x102d3534], 0xf
mov eax, 0x102d3520
push 0
cmova eax, dword [0x102d3520]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [0x102d3564], 0xf
mov eax, 0x102d3550
cmova eax, dword [0x102d3550]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1008c771
call esi
cmp eax, 2
je 0x1008c776
test bl, 0x10
jne 0x1008c792
cmp dword [0x102d3564], 0xf
mov eax, 0x102d3550
push 0
cmova eax, dword [0x102d3550]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x34]
mov ecx, 0x102bbd00
push eax
call fcn.10083c60
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x34]
mov ecx, 0x102bbcd0
cmova esi, dword [ebp - 0x34]
push eax
call fcn.10065080
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 0x1008c803
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008c7f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008c83b
push ecx
push edx
call fcn.1011033a
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 0x1008c84b
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008c841
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008c841
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1011033a
add esp, 8
test esi, esi
jne 0x1008ca20
lea eax, [ebp - 0x34]
mov ecx, 0x102bbd78
push eax
call fcn.10083c60
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x34]
mov ecx, 0x102bbd48
cmova esi, dword [ebp - 0x34]
push eax
call fcn.10065080
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 0x1008c8c4
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008c8ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008c8fc
push ecx
push edx
call fcn.1011033a
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 0x1008c90c
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008c902
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008c902
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1011033a
add esp, 8
test esi, esi
jne 0x1008ca20
lea eax, [ebp - 0x1c]
mov ecx, 0x102bbdf0
push eax
call fcn.10083c60
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x102bbdc0
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065080
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
push 0
cmova eax, dword [ebp - 0x34]
push 0x10
push esi
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.10044ae0
lea ecx, [ebp - 0x1c]
call fcn.10044ae0
test esi, esi
jne 0x1008ca20
lea eax, [ebp - 0x1c]
mov ecx, 0x102bbe68
push eax
call fcn.10083c60
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x102bbe38
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065080
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
push 0
cmova eax, dword [ebp - 0x34]
push 0x10
push esi
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.10044ae0
lea ecx, [ebp - 0x1c]
call fcn.10044ae0
test esi, esi
jne 0x1008ca20
lea eax, [ebp - 0x1c]
mov ecx, 0x102bbee0
push eax
call fcn.10083c60
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x102bbeb0
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065080
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
push 0
cmova eax, dword [ebp - 0x34]
push 0x10
push esi
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.10044ae0
lea ecx, [ebp - 0x1c]
call fcn.10044ae0
test esi, esi
jne 0x1008ca20
jmp 0x1008ca20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10110662
mov esp, ebp
pop ebp
ret