Function at 0x10089c20
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 [0x10277534]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x10089c3c
lea eax, [ebp - 0x1c]
mov ecx, 0x102653d8
push eax
call fcn.1004edb0
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
mov ecx, 0x1027c530
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.10055bb0
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
jb 0x10089c90
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10089c86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10089cda
push ecx
push edx
call fcn.1010c1fa
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, 0x102653f0
push eax
call fcn.10050250
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
mov ecx, 0x1027c548
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.10055bb0
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
jb 0x10089cea
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10089ce0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10089ce0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010c1fa
add esp, 8
cmp dword [0x1027c544], 0x10
mov eax, 0x1027c530
cmovae eax, dword [0x1027c530]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10089d18
call esi
cmp eax, 2
je 0x10089d1d
test bl, 0x10
jne 0x10089d39
cmp dword [0x1027c544], 0x10
mov eax, 0x1027c530
push 0
cmovae eax, dword [0x1027c530]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [0x1027c55c], 0x10
mov eax, 0x1027c548
cmovae eax, dword [0x1027c548]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10089d61
call esi
cmp eax, 2
je 0x10089d66
test bl, 0x10
jne 0x10089d82
cmp dword [0x1027c55c], 0x10
mov eax, 0x1027c548
push 0
cmovae eax, dword [0x1027c548]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x34]
mov ecx, 0x10265420
push eax
call fcn.10064da0
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x34]
mov ecx, 0x10265410
cmovae esi, dword [ebp - 0x34]
push eax
call fcn.100813e0
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push 0x10
push esi
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov ecx, dword [ebp - 8]
test eax, eax
setne bl
cmp ecx, 0x10
jb 0x10089df6
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10089dec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10089e2e
push ecx
push edx
call fcn.1010c1fa
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, 0x10
jb 0x10089e3e
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10089e34
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10089e34
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010c1fa
add esp, 8
test bl, bl
jne 0x1008a016
lea eax, [ebp - 0x34]
mov ecx, 0x10265470
push eax
call fcn.10081450
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x34]
mov ecx, 0x10265460
cmovae esi, dword [ebp - 0x34]
push eax
call fcn.100813e0
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push 0x10
push esi
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov ecx, dword [ebp - 8]
test eax, eax
setne bl
cmp ecx, 0x10
jb 0x10089eba
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10089eb0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10089ef2
push ecx
push edx
call fcn.1010c1fa
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, 0x10
jb 0x10089f02
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10089ef8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10089ef8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010c1fa
add esp, 8
test bl, bl
jne 0x1008a016
lea eax, [ebp - 0x1c]
mov ecx, 0x102654c8
push eax
call fcn.10081450
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x102654b8
cmovae esi, dword [ebp - 0x1c]
push eax
call fcn.100813e0
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push 0
cmovae 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.10044080
lea ecx, [ebp - 0x1c]
call fcn.10044080
test esi, esi
jne 0x1008a016
lea eax, [ebp - 0x1c]
mov ecx, 0x10265520
push eax
call fcn.10064da0
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x10265510
cmovae esi, dword [ebp - 0x1c]
push eax
call fcn.100813e0
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push 0
cmovae 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.10044080
lea ecx, [ebp - 0x1c]
call fcn.10044080
test esi, esi
jne 0x1008a016
lea eax, [ebp - 0x1c]
mov ecx, 0x10265570
push eax
call fcn.10081450
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x10265560
cmovae esi, dword [ebp - 0x1c]
push eax
call fcn.100813e0
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push 0
cmovae 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.10044080
lea ecx, [ebp - 0x1c]
call fcn.10044080
test esi, esi
jne 0x1008a016
jmp 0x1008a016
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010c522
mov esp, ebp
pop ebp
ret