Function at 0x1008b6a0
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 [0x102cdf00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x1008b6bc
lea eax, [ebp - 0x1c]
mov ecx, 0x102bb648
push eax
call fcn.1004f7c0
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
mov ecx, 0x102d2f60
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.10056500
mov ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x1008b710
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008b706
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008b75a
push ecx
push edx
call fcn.1010f4da
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, 0x102bb660
push eax
call fcn.10050c60
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
mov ecx, 0x102d2f90
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.10056500
mov ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x1008b76a
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008b760
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008b760
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010f4da
add esp, 8
cmp dword [0x102d2f74], 0xf
mov eax, 0x102d2f60
cmova eax, dword [0x102d2f60]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1008b798
call esi
cmp eax, 2
je 0x1008b79d
test bl, 0x10
jne 0x1008b7b9
cmp dword [0x102d2f74], 0xf
mov eax, 0x102d2f60
push 0
cmova eax, dword [0x102d2f60]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [0x102d2fa4], 0xf
mov eax, 0x102d2f90
cmova eax, dword [0x102d2f90]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1008b7e1
call esi
cmp eax, 2
je 0x1008b7e6
test bl, 0x10
jne 0x1008b802
cmp dword [0x102d2fa4], 0xf
mov eax, 0x102d2f90
push 0
cmova eax, dword [0x102d2f90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x34]
mov ecx, 0x102bb6b0
push eax
call fcn.10082910
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x34]
mov ecx, 0x102bb680
cmova esi, dword [ebp - 0x34]
push eax
call fcn.10064c40
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 0x1008b873
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008b869
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008b8ab
push ecx
push edx
call fcn.1010f4da
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 0x1008b8bb
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008b8b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008b8b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010f4da
add esp, 8
test esi, esi
jne 0x1008ba90
lea eax, [ebp - 0x34]
mov ecx, 0x102bb728
push eax
call fcn.10082910
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x34]
mov ecx, 0x102bb6f8
cmova esi, dword [ebp - 0x34]
push eax
call fcn.10064c40
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 0x1008b934
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008b92a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008b96c
push ecx
push edx
call fcn.1010f4da
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 0x1008b97c
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008b972
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008b972
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010f4da
add esp, 8
test esi, esi
jne 0x1008ba90
lea eax, [ebp - 0x1c]
mov ecx, 0x102bb7a0
push eax
call fcn.10082910
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x102bb770
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10064c40
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.10044760
lea ecx, [ebp - 0x1c]
call fcn.10044760
test esi, esi
jne 0x1008ba90
lea eax, [ebp - 0x1c]
mov ecx, 0x102bb818
push eax
call fcn.10082910
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x102bb7e8
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10064c40
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.10044760
lea ecx, [ebp - 0x1c]
call fcn.10044760
test esi, esi
jne 0x1008ba90
lea eax, [ebp - 0x1c]
mov ecx, 0x102bb890
push eax
call fcn.10082910
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x102bb860
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10064c40
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.10044760
lea ecx, [ebp - 0x1c]
call fcn.10044760
test esi, esi
jne 0x1008ba90
jmp 0x1008ba90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010f802
mov esp, ebp
pop ebp
ret