Function at 0x10009a50
Capabilities:
Get common file path
Query remote server for available data
Read data from internet
Receive data

Disassembly:
sub esp, 0x8e8
push ebx
push esi
push edi
mov esi, 0xc8
lea eax, [esp + 0x10]
push ebp
mov ecx, dword [esp + 0x8fc]
push 0
push eax
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [esp + 0x1c], esi
push 0x10014478
push 0x13
push ecx
call ebx
mov edi, eax
test edi, edi
je 0x10009e1e
mov eax, dword [esp + 0x8fc]
push 0
mov dword [esp + 0x18], esi
lea esi, [esp + 0x18]
push esi
push 0x10014540
push 1
push eax
call ebx
mov edi, eax
test edi, edi
je 0x10009e1e
lea eax, [esp + 0x24]
push 0
mov ecx, dword [esp + 0x900]
push 0
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edi, eax
test edi, edi
je 0x10009e1e
push 0x10011744
push 0x10014540
call dword [sym.imp.MSVCRT40.dll__stricmp]
add esp, 8
test eax, eax
je 0x10009b1c
push 0x10011754
push 0x10014540
call dword [sym.imp.MSVCRT40.dll__stricmp]
add esp, 8
test eax, eax
je 0x10009b1c
mov esi, dword [esp + 0x900]
test esi, esi
je 0x10009d3c
call fcn.1000a960
mov dword [esi + 0x24], eax
jmp 0x10009d23
lea eax, [esp + 0x28]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x10009b40
lea eax, [esp + 0x28]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, str.Temporary_Internet_Files_
lea edi, [esp + 0x28]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edx, 0x1001177c
mov ecx, 0xffffffff
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edi], eax
sub eax, eax
mov dword [edi + 4], ecx
lea edi, [esp + 0x28]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xf
push ecx
call dword [sym.imp.MSVCRT40.dll_malloc]
add esp, 4
mov ebx, eax
push str.application_pdf
push 0x10014540
call dword [sym.imp.MSVCRT40.dll__stricmp]
add esp, 8
test eax, eax
jne 0x10009bb6
mov edi, 0x10011794
jmp 0x10009bd2
push str.text_html
push 0x10014540
call dword [sym.imp.MSVCRT40.dll__stricmp]
add esp, 8
test eax, eax
jne 0x10009bf3
mov edi, 0x100117a4
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x10009d15
push 0x10011eb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [0x10011230]
push 0x10011eb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebp
lea ecx, [esp + 0x18]
inc ebp
push ecx
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.MSVCRT40.dll__mktemp]
add esp, 4
push eax
push 0x100117a8
push ebx
call dword [sym.imp.MSVCRT40.dll_sprintf]
mov esi, dword [esp + 0x914]
add esp, 0x14
test esi, esi
je 0x10009ced
push ebx
call fcn.1000aa10
add esp, 4
mov dword [esi + 0x28], eax
test esi, esi
je 0x10009cf7
cmp dword [esi + 0x28], 0
jne 0x10009ced
lea eax, [esp + 0x28]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, str.pXXXXXX
lea edi, [esp + 0x28]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ebx
mov dword [edi], eax
mov dword [edi + 4], ecx
call dword [sym.imp.MSVCRT40.dll_free]
lea edi, [esp + 0x2c]
add esp, 4
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xf
push ecx
call dword [sym.imp.MSVCRT40.dll_malloc]
lea ecx, [esp + 0x1c]
add esp, 4
mov ebx, eax
mov eax, ebp
inc ebp
push ecx
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.MSVCRT40.dll__mktemp]
add esp, 4
push eax
push str._s_d._s
push ebx
call dword [sym.imp.MSVCRT40.dll_sprintf]
add esp, 0x14
test esi, esi
je 0x10009cf7
jmp 0x10009cf1
test esi, esi
je 0x10009cf7
mov word [esi + 0x34], 0
push 0x10011eb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10011eb8
mov dword [0x10011230], ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10009d1c
mov esi, dword [esp + 0x900]
test esi, esi
je 0x10009d3c
mov dword [esi + 0x24], ebx
test esi, esi
je 0x10009d53
cmp dword [esi + 0x28], 0
jne 0x10009d3c
mov eax, dword [esi + 0x24]
push eax
call fcn.1000aa10
add esp, 4
mov dword [esi + 0x28], eax
test esi, esi
je 0x10009d53
cmp dword [esi + 0x28], 0
jne 0x10009d53
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x8e8
ret
xor ebx, ebx
mov ebp, dword [esp + 0x128]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x128]
mov edx, dword [esp + 0x8fc]
push eax
push 0x7d0
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [esp + 0x10], 0
mov edi, eax
je 0x10009de0
test esi, esi
je 0x10009db5
push ebx
mov eax, dword [esi + 0x28]
push eax
call fcn.1000aa70
add esp, 8
test esi, esi
je 0x10009db5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x128]
push eax
mov edx, dword [esi + 0x28]
push ecx
push edx
call fcn.1000aac0
add esp, 0xc
mov ebp, eax
add ebx, dword [esp + 0x10]
test esi, esi
je 0x10009dd2
lea eax, [ebx + ebp]
test esi, esi
mov dword [esi + 0x2c], eax
je 0x10009dd2
lea eax, [ebx + ebp]
cmp dword [esi + 0x30], eax
jge 0x10009dd2
mov dword [esi + 0x30], eax
cmp dword [esp + 0x10], 0x7d0
jae 0x10009d5c
test esi, esi
je 0x10009dfb
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10009dfb
push eax
call fcn.1000aa50
mov dword [esi + 0x28], 0
add esp, 4
push str.application_vnd.fdf
push 0x10014540
call dword [sym.imp.MSVCRT40.dll__stricmp]
mov word [esi + 0x36], 0
add esp, 8
test eax, eax
je 0x10009e1e
mov word [esi + 0x36], 1
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x8e8
ret