Function at 0x1000a870
Capabilities:
Download url
Get common file path
Read file on windows
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d4a9
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x100260b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], ebx
lea eax, [ebp - 0x428]
push eax
push 0x104
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x21c]
push ecx
push ebx
push 0x100214c4
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edx, dword [0x10026038]
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x434], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x10026038
call eax
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x1000a936
mov edx, ecx
movzx edi, dx
push edi
call fcn.100031e0
add esp, 4
cmp eax, ebx
je 0x1000a963
push eax
mov eax, edi
lea edi, [ebp - 0x42c]
call fcn.10002f40
jmp 0x1000a963
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1000a940
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x21c]
push ecx
mov edi, eax
lea ebx, [ebp - 0x42c]
call fcn.10002d10
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10002e20
push 0
push 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x42c]
push edx
lea edi, [eax + 0x10]
push edi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ebx, eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a9ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a9cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x1000aa09
push esi
mov ecx, 0x100214cc
call fcn.10003ce0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000aa02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x1000aac7
lea ecx, [ebp - 0x21c]
push 0x100214d0
push ecx
call fcn.1000c68d
push 2
mov edi, eax
push 0
push edi
call fcn.1000cc42
push edi
call fcn.1000ce52
mov esi, eax
lea edx, [esi + 1]
push edx
call fcn.1000bb36
push 0
push 0
push edi
mov ebx, eax
call fcn.1000cc42
push edi
push 1
push esi
push ebx
call fcn.1000d101
push edi
call fcn.1000c7ca
mov eax, dword [0x10026038]
mov edx, dword [eax + 0xc]
add esp, 0x3c
mov ecx, 0x10026038
call edx
mov edi, dword [ebp - 0x430]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
test ebx, ebx
je 0x1000aa9a
test ebx, 0xffff0000
jne 0x1000aa9a
movzx esi, bx
push esi
call fcn.100031e0
add esp, 4
test eax, eax
je 0x1000aa9f
push eax
mov eax, esi
call fcn.10002f40
jmp 0x1000aa9f
call fcn.10002c40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000aac5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000bb4c
mov esp, ebp
pop ebp
ret