Function at 0x100012c1
Capabilities:
Check http status code
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
push ebx
push edi
xor edi, edi
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
push str.wininet.dll
mov dword [ebp - 4], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, edi
jne 0x100012f1
xor eax, eax
inc eax
jmp 0x100014ac
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenA
push ebx
call esi
push str.InternetConnectA
push ebx
mov dword [ebp - 0x1c], eax
call esi
push str.InternetReadFile
push ebx
mov dword [ebp - 0x10], eax
call esi
push str.InternetCloseHandle
push ebx
mov dword [ebp - 0x14], eax
call esi
push str.HttpSendRequestA
push ebx
mov dword [ebp - 0x18], eax
call esi
push str.HttpOpenRequestA
push ebx
mov dword [ebp - 8], eax
call esi
push str.HttpQueryInfoA
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ebx, eax
cmp dword [ebp - 0x1c], edi
je 0x100014a8
cmp dword [ebp - 0x10], edi
je 0x100014a8
cmp dword [ebp - 0x14], edi
je 0x100014a8
cmp dword [ebp - 8], edi
je 0x100014a8
cmp dword [ebp - 0xc], edi
je 0x100014a8
push edi
push edi
push edi
push edi
push str.tl_v2.32.916gc
call dword [ebp - 0x1c]
push edi
push edi
push 3
push edi
push edi
push 0x50
push dword [ebp + 8]
mov dword [ebp - 0x2c], eax
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x100014a8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push edi
push 0x84000300
push 0x10010060
push edi
push edi
push dword [ebp + 0xc]
push 0x1000dcf0
push dword [ebp - 0x24]
call dword [ebp - 0xc]
push edi
push edi
push 0xffffffffffffffff
push edi
push eax
mov dword [ebp - 0xc], eax
call dword [ebp - 8]
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000013
push dword [ebp - 0xc]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], 4
call ebx
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x10001477
cmp dword [ebp - 0x20], 0xc8
jne 0x10001477
mov ebx, 0x400
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
call esi
push ebx
push 8
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
jmp 0x10001469
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x10001477
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
cmp eax, 0x10
jae 0x10001455
add dword [ebp - 8], ebx
call esi
push dword [ebp - 8]
mov eax, dword [ebp + 0x10]
push dword [eax]
push 8
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
dec eax
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add eax, dword [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x10001423
push dword [ebp - 0xc]
call dword [ebp - 0x18]
push dword [ebp - 0x24]
call dword [ebp - 0x18]
push dword [ebp - 0x2c]
call dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x1c], edi
je 0x100014a3
cmp dword [ebp - 0x20], 0xc8
jne 0x100014a3
xor eax, eax
jmp 0x100014ab
push 0x64
pop eax
jmp 0x100014ab
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret