Function at 0x10088c70
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 [0x1025ab04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x10088c8c
lea eax, [ebp - 0x1c]
mov ecx, 0x10249820
push eax
call fcn.1004edd0
cmp dword [ebp - 8], 0x10
lea edx, [ebp - 0x1c]
cmovae edx, dword [ebp - 0x1c]
mov ecx, edx
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10088cb0
sub ecx, esi
push ecx
push edx
mov ecx, 0x10261670
call fcn.10045f20
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x10088cf5
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10088ceb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10088d4e
push edx
push ecx
call fcn.101041fa
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, 0x10249838
push eax
call fcn.100503a0
cmp dword [ebp - 8], 0x10
lea edx, [ebp - 0x1c]
cmovae edx, dword [ebp - 0x1c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10088d13
sub ecx, esi
push ecx
push edx
mov ecx, 0x10261688
call fcn.10045f20
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x10088d5e
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10088d54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10088d54
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101041fa
add esp, 8
cmp dword [0x10261684], 0x10
mov eax, 0x10261670
cmovae eax, dword [0x10261670]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10088d8c
call esi
cmp eax, 2
je 0x10088d91
test bl, 0x10
jne 0x10088dad
cmp dword [0x10261684], 0x10
mov eax, 0x10261670
push 0
cmovae eax, dword [0x10261670]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [0x1026169c], 0x10
mov eax, 0x10261688
cmovae eax, dword [0x10261688]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10088dd5
call esi
cmp eax, 2
je 0x10088dda
test bl, 0x10
jne 0x10088df6
cmp dword [0x1026169c], 0x10
mov eax, 0x10261688
push 0
cmovae eax, dword [0x10261688]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x34]
mov ecx, 0x10249890
push eax
call fcn.10065460
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x34]
mov ecx, 0x10249858
cmovae esi, dword [ebp - 0x34]
push eax
call fcn.10064820
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 edx, dword [ebp - 8]
test eax, eax
setne bl
cmp edx, 0x10
jb 0x10088e6a
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10088e60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10088ea2
push edx
push ecx
call fcn.101041fa
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x10088eb2
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10088ea8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10088ea8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101041fa
add esp, 8
test bl, bl
jne 0x1008908a
lea eax, [ebp - 0x34]
mov ecx, 0x10249908
push eax
call fcn.10081830
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x34]
mov ecx, 0x102498d0
cmovae esi, dword [ebp - 0x34]
push eax
call fcn.10064900
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 edx, dword [ebp - 8]
test eax, eax
setne bl
cmp edx, 0x10
jb 0x10088f2e
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10088f24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10088f66
push edx
push ecx
call fcn.101041fa
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x10088f76
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10088f6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10088f6c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101041fa
add esp, 8
test bl, bl
jne 0x1008908a
lea eax, [ebp - 0x1c]
mov ecx, 0x10249988
push eax
call fcn.10081830
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x10249950
cmovae esi, dword [ebp - 0x1c]
push eax
call fcn.10064900
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.10043cb0
lea ecx, [ebp - 0x1c]
call fcn.10043cb0
test esi, esi
jne 0x1008908a
lea eax, [ebp - 0x1c]
mov ecx, 0x10249a08
push eax
call fcn.10065460
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x102499d0
cmovae esi, dword [ebp - 0x1c]
push eax
call fcn.10064820
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.10043cb0
lea ecx, [ebp - 0x1c]
call fcn.10043cb0
test esi, esi
jne 0x1008908a
lea eax, [ebp - 0x1c]
mov ecx, 0x10249a80
push eax
call fcn.10081830
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x10249a48
cmovae esi, dword [ebp - 0x1c]
push eax
call fcn.10064900
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.10043cb0
lea ecx, [ebp - 0x1c]
call fcn.10043cb0
test esi, esi
jne 0x1008908a
jmp 0x1008908a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10104522
mov esp, ebp
pop ebp
ret