Function at 0x1008a110
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 [0x10273240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x1008a12c
lea eax, [ebp - 0x1c]
mov ecx, 0x10262468
push eax
call fcn.10050050
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
mov ecx, 0x102780d0
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.10056e70
mov ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x1008a180
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008a176
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008a1ca
push ecx
push edx
call fcn.1010682a
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, 0x10262480
push eax
call fcn.100514f0
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
mov ecx, 0x10278100
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.10056e70
mov ecx, dword [ebp - 8]
cmp ecx, 0xf
jbe 0x1008a1da
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008a1d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008a1d0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010682a
add esp, 8
cmp dword [0x102780e4], 0xf
mov eax, 0x102780d0
cmova eax, dword [0x102780d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1008a208
call esi
cmp eax, 2
je 0x1008a20d
test bl, 0x10
jne 0x1008a229
cmp dword [0x102780e4], 0xf
mov eax, 0x102780d0
push 0
cmova eax, dword [0x102780d0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [0x10278114], 0xf
mov eax, 0x10278100
cmova eax, dword [0x10278100]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1008a251
call esi
cmp eax, 2
je 0x1008a256
test bl, 0x10
jne 0x1008a272
cmp dword [0x10278114], 0xf
mov eax, 0x10278100
push 0
cmova eax, dword [0x10278100]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x34]
mov ecx, 0x102624d0
push eax
call fcn.10066930
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x34]
mov ecx, 0x102624a0
cmova esi, dword [ebp - 0x34]
push eax
call fcn.10065680
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 0x1008a2e3
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008a2d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008a31b
push ecx
push edx
call fcn.1010682a
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 0x1008a32b
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008a321
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008a321
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010682a
add esp, 8
test esi, esi
jne 0x1008a7c8
lea eax, [ebp - 0x34]
mov ecx, 0x10262548
push eax
call fcn.10066930
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x34]
mov ecx, 0x10262518
cmova esi, dword [ebp - 0x34]
push eax
call fcn.10065680
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 0x1008a3a4
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008a39a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008a3dc
push ecx
push edx
call fcn.1010682a
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 0x1008a3ec
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008a3e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1008a3e2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1010682a
add esp, 8
test esi, esi
jne 0x1008a7c8
lea eax, [ebp - 0x1c]
mov ecx, 0x102625c0
push eax
call fcn.10066930
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x10262590
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065680
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.10045360
lea ecx, [ebp - 0x1c]
call fcn.10045360
test esi, esi
jne 0x1008a7c8
lea eax, [ebp - 0x1c]
mov ecx, 0x10262638
push eax
call fcn.10066930
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x10262608
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065680
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.10045360
lea ecx, [ebp - 0x1c]
call fcn.10045360
test esi, esi
jne 0x1008a7c8
lea eax, [ebp - 0x1c]
mov ecx, 0x102626b0
push eax
call fcn.10066930
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x10262680
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065680
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.10045360
lea ecx, [ebp - 0x1c]
call fcn.10045360
test esi, esi
jne 0x1008a7c8
lea eax, [ebp - 0x1c]
mov ecx, 0x10262728
push eax
call fcn.10066930
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x102626f8
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065680
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.10045360
lea ecx, [ebp - 0x1c]
call fcn.10045360
test esi, esi
jne 0x1008a7c8
lea eax, [ebp - 0x1c]
mov ecx, 0x102627a0
push eax
call fcn.10066930
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x10262770
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065680
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.10045360
lea ecx, [ebp - 0x1c]
call fcn.10045360
test esi, esi
jne 0x1008a7c8
lea eax, [ebp - 0x1c]
mov ecx, 0x10262818
push eax
call fcn.10066930
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x102627e8
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065680
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.10045360
lea ecx, [ebp - 0x1c]
call fcn.10045360
test esi, esi
jne 0x1008a7c8
lea eax, [ebp - 0x1c]
mov ecx, 0x10262890
push eax
call fcn.10066930
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x10262860
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065680
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.10045360
lea ecx, [ebp - 0x1c]
call fcn.10045360
test esi, esi
jne 0x1008a7c8
lea eax, [ebp - 0x1c]
mov ecx, 0x10262908
push eax
call fcn.10066930
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x102628d8
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065680
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.10045360
lea ecx, [ebp - 0x1c]
call fcn.10045360
test esi, esi
jne 0x1008a7c8
lea eax, [ebp - 0x1c]
mov ecx, 0x10262980
push eax
call fcn.10066930
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x10262950
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065680
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.10045360
lea ecx, [ebp - 0x1c]
call fcn.10045360
test esi, esi
jne 0x1008a7c8
lea eax, [ebp - 0x1c]
mov ecx, 0x102629f8
push eax
call fcn.10066930
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x102629c8
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065680
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.10045360
lea ecx, [ebp - 0x1c]
call fcn.10045360
test esi, esi
jne 0x1008a7c8
lea eax, [ebp - 0x1c]
mov ecx, 0x10262a70
push eax
call fcn.10066930
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x1c]
mov ecx, 0x10262a40
cmova esi, dword [ebp - 0x1c]
push eax
call fcn.10065680
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.10045360
lea ecx, [ebp - 0x1c]
call fcn.10045360
test esi, esi
jne 0x1008a7c8
jmp 0x1008a7c8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10106b52
mov esp, ebp
pop ebp
ret