Function at 0x100069e0
Capabilities:
Download url
Get common file path
Get startup folder
Get system information on windows
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100681d0
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x1009a1a0]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push esi
push edi
mov eax, dword [0x1009a1a0]
xor eax, esp
push eax
lea eax, [esp + 0x378]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
xor eax, eax
push eax
push 0x10076be8
lea ecx, [esp + 0x154]
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], 0
mov word [esp + 0x154], ax
call fcn.10008ae0
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x384], 0
call fcn.10007400
push 1
push 0x1c
lea eax, [esp + 0x16c]
push eax
push 0
mov byte [esp + 0x390], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
sub esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.100083e0
test eax, eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov eax, dword [eax + 4]
jne 0x10006ac1
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x10006ad0
or eax, 4
jmp 0x10006ad0
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
mov edx, 4
cmove eax, edx
push 0
push eax
call fcn.10005970
push 4
call fcn.1004bbc8
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov byte [esp + 0x380], 2
test edi, edi
je 0x10006b81
lea eax, [esp + 0xc8]
test eax, eax
je 0x10006b38
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006b2a
lea ecx, [esp + 0xc8]
push ecx
call eax
jmp 0x10006b38
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [esp + 0xc8]
cmp ax, 9
je 0x10006b51
mov ebx, 0x20
cmp ax, 6
jne 0x10006b56
mov ebx, 0x40
cmp dword [esi + 0x14], 8
jb 0x10006b60
mov eax, dword [esi]
jmp 0x10006b62
mov eax, esi
push eax
mov dword [edi], vtable.CBindCallback.0
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov dword [0x1009ce84], 0x100069a0
mov dword [0x1009ce80], ebx
jmp 0x10006b83
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xec]
mov byte [esp + 0x380], 1
call fcn.10006400
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x134]
mov byte [esp + 0x380], 3
call fcn.10006400
push 1
push ecx
lea ecx, [esp + 0xf4]
mov byte [esp + 0x388], 4
call fcn.100080d0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0xf8]
call fcn.10007fd0
mov edx, esi
lea ecx, [esp + 0x104]
call fcn.10006400
mov byte [esp + 0x380], 5
cmp dword [esp + 0x100], 0x10
lea edx, [esp + 0xec]
cmovae edx, dword [esp + 0xec]
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x28], eax
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
cmp byte [edx], 0
jne 0x10006c32
xor ecx, ecx
jmp 0x10006c44
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006c37
mov eax, dword [esp + 0x28]
sub ecx, ebx
push ecx
push edx
mov ecx, eax
call fcn.10001370
lea ecx, [esp + 0x134]
call fcn.10006820
add esp, 0x18
mov edx, str._nDownload_url:
lea ecx, [esp + 0x1c]
mov byte [esp + 0x380], 6
call fcn.10009080
cmp dword [esp + 0x118], 0x10
lea edx, [esp + 0x104]
cmovae edx, dword [esp + 0x104]
lea ecx, [esp + 0x1c]
call fcn.10009080
lea ecx, [esp + 0x20]
call fcn.100084a0
test eax, eax
jne 0x10006cc3
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x10006cbb
or eax, 4
push 0
push eax
call fcn.10005970
cmp dword [esp + 0x130], 8
lea eax, [esp + 0x11c]
cmovae eax, dword [esp + 0x11c]
cmp dword [esi + 0x14], 8
jb 0x10006ce2
mov esi, dword [esi]
push edi
push 0
push eax
push esi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov dword [esp + 0x380], 6
mov ecx, dword [0x1009cee0]
test eax, eax
jne 0x10006d12
test ecx, ecx
je 0x10006d1e
mov eax, dword [ecx]
call dword [eax + 0xcc]
jmp 0x10006d1e
test ecx, ecx
je 0x10006d1e
mov eax, dword [ecx]
call dword [eax + 0xd0]
cmp dword [esp + 0x130], 8
jb 0x10006d37
push dword [esp + 0x11c]
call fcn.1004bb78
add esp, 4
xor eax, eax
cmp dword [esp + 0x118], 0x10
mov dword [esp + 0x130], 7
mov dword [esp + 0x12c], 0
mov word [esp + 0x11c], ax
jb 0x10006d70
push dword [esp + 0x104]
call fcn.1004bb78
add esp, 4
cmp dword [esp + 0x148], 0x10
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
jb 0x10006da7
push dword [esp + 0x134]
call fcn.1004bb78
add esp, 4
cmp dword [esp + 0x100], 0x10
mov dword [esp + 0x148], 0xf
mov dword [esp + 0x144], 0
mov byte [esp + 0x134], 0
jb 0x10006dde
push dword [esp + 0xec]
call fcn.1004bb78
add esp, 4
mov byte [esp + 0x380], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], 0
mov byte [esp + 0xec], 0
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x1c], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [esp + ecx + 0x18], eax
lea ecx, [esp + 0x20]
call fcn.100075a0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x1c], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [esp + ecx + 0x18], eax
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x80], vtable.std::ios_base.0
call fcn.1004ade4
add esp, 4
cmp dword [esp + 0x160], 8
jb 0x10006e78
push dword [esp + 0x14c]
call fcn.1004bb78
add esp, 4
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.1004b3bc
mov esp, ebp
pop ebp
ret