Function at 0x10018d20
Capabilities:
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c9a7
mov eax, dword fs:[0]
push eax
mov eax, 0x4cf4
call fcn.10040660
mov eax, dword [0x1005d500]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x4cb0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4ca8], ebx
mov esi, dword [eax]
mov ecx, dword [eax + 4]
sub ecx, esi
mov dword [ebp - 0x4cb4], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
xor edi, edi
add ecx, edx
mov dword [ebp - 0x4cac], ebx
mov dword [ebp - 0x4c98], ebx
mov dword [ebp - 0x4c9c], ebx
je 0x10019424
mov dword [ebp - 0x4ca4], ebx
mov eax, dword [ebp - 0x4ca4]
push 0xffffffffffffffff
add eax, esi
push ebx
mov esi, 0xf
push eax
lea ecx, [ebp - 0x4c5c]
mov dword [ebp - 0x4c48], esi
mov dword [ebp - 0x4c4c], ebx
mov byte [ebp - 0x4c5c], bl
call fcn.10002da0
push 0x3e8
lea eax, [ebp - 0x3f8]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10037ff0
mov eax, dword [ebp - 0x4c5c]
add esp, 0xc
cmp dword [ebp - 0x4c48], 0x10
jae 0x10018e01
lea eax, [ebp - 0x4c5c]
lea edx, [ebp - 0x3f8]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10018e10
lea ecx, [ebp - 0x3f0]
push 0x10053a7c
push ecx
call fcn.10036750
add esp, 8
cmp eax, ebx
je 0x10018e64
mov byte [eax], bl
lea eax, [ebp - 0x3f8]
dec eax
jmp 0x10018e40
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10018e40
mov edx, dword [str._1.gif]
mov cx, word [0x10054510]
mov dword [eax], edx
mov dl, byte [0x10054512]
mov word [eax + 4], cx
mov byte [eax + 6], dl
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x4ca0], eax
cmp eax, ebx
je 0x1001931f
push 0x38
lea eax, [ebp - 0x4cf4]
push ebx
push eax
mov dword [ebp - 0x4cf8], 0x3c
call fcn.10037ff0
add esp, 0xc
mov eax, 0x800
lea edx, [ebp - 0x1400]
mov dword [ebp - 0x4ccc], edx
lea edx, [ebp - 0x4cf8]
push edx
mov dword [ebp - 0x4ce4], eax
mov dword [ebp - 0x4cc8], eax
mov dword [ebp - 0x4cd8], eax
mov dword [ebp - 0x4cd0], eax
lea eax, [ebp - 0x1c04]
push ebx
lea ecx, [ebp - 0xbfc]
mov dword [ebp - 0x4cdc], eax
mov dword [ebp - 0x4ce8], ecx
push ebx
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4c08]
push eax
mov dword [ebp - 0x4cd4], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov ecx, dword [ebp - 0x4ce4]
mov edx, dword [ebp - 0x4ce8]
mov byte [edx + ecx], bl
mov ecx, dword [ebp - 0x4cc8]
mov edx, dword [ebp - 0x4ccc]
mov byte [edx + ecx], bl
mov ecx, dword [ebp - 0x4cd8]
mov edx, dword [ebp - 0x4cdc]
mov byte [edx + ecx], bl
mov ecx, dword [ebp - 0x4cd0]
mov edx, dword [ebp - 0x4cd4]
mov byte [edx + ecx], bl
mov dword [ebp - 0x4c2c], esi
mov dword [ebp - 0x4c30], ebx
mov byte [ebp - 0x4c40], bl
mov dword [ebp - 0x4c80], esi
mov dword [ebp - 0x4c84], ebx
mov byte [ebp - 0x4c94], bl
mov dword [ebp - 0x4c64], esi
mov dword [ebp - 0x4c68], ebx
mov byte [ebp - 0x4c78], bl
mov dword [ebp - 0x4c10], esi
mov dword [ebp - 0x4c14], ebx
mov byte [ebp - 0x4c24], bl
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x10019039
mov eax, dword [ebp - 0x4cec]
movzx ecx, word [ebp - 0x4ce0]
mov edx, dword [ebp - 0x4ce8]
mov dword [ebp - 0x4cbc], eax
mov eax, edx
mov dword [ebp - 0x4cb8], ecx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10018fb1
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x4c40]
call fcn.100028b0
mov edx, dword [ebp - 0x4ccc]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10018fd2
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x4c94]
call fcn.100028b0
mov edx, dword [ebp - 0x4cdc]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10018ff3
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x4c78]
call fcn.100028b0
mov edx, dword [ebp - 0x4cd4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10019014
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x4c24]
call fcn.100028b0
cmp dword [ebp - 0x4c10], 0x10
mov edx, dword [ebp - 0x4c24]
jae 0x1001903f
lea edx, [ebp - 0x4c24]
mov ecx, dword [ebp - 0x4c78]
mov esi, 0x10
cmp dword [ebp - 0x4c64], esi
jae 0x10019058
lea ecx, [ebp - 0x4c78]
mov eax, dword [ebp - 0x4c40]
cmp dword [ebp - 0x4c2c], esi
jae 0x1001906c
lea eax, [ebp - 0x4c40]
mov edi, dword [ebp - 0x4cbc]
push 1
push ebx
push edi
push edx
mov edx, dword [ebp - 0x4cb8]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x4ca0]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
cmp edi, ebx
je 0x1001925f
mov eax, dword [ebp - 0x4c94]
mov dword [ebp - 0x4d00], 0x100544f4
mov dword [ebp - 0x4cfc], ebx
cmp dword [ebp - 0x4c80], esi
jae 0x100190bb
lea eax, [ebp - 0x4c94]
push 1
push 0x84480000
lea ecx, [ebp - 0x4d00]
push ecx
push ebx
push str.HTTP_1.1
push eax
push 0x10054514
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [ebp - 0x4c98], esi
cmp esi, ebx
je 0x10019265
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x10019265
push 0x2800
lea edx, [ebp - 0x4404]
push ebx
push edx
call fcn.10037ff0
add esp, 0xc
lea eax, [ebp - 0x4ca8]
push eax
push 0x2800
lea ecx, [ebp - 0x4404]
push ecx
push esi
mov dword [ebp - 0x4ca8], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
push 2
lea edx, [ebp - 0x4404]
push 0x10054518
push edx
call fcn.10049d49
add esp, 0xc
test eax, eax
jne 0x10019265
cmp dword [ebp - 0x4c10], 0x10
mov dword [ebp - 0x4cac], 1
jb 0x10019174
mov ecx, dword [ebp - 0x4c24]
push ecx
call fcn.10032f50
add esp, 4
cmp dword [ebp - 0x4c64], 0x10
mov dword [ebp - 0x4c10], 0xf
mov dword [ebp - 0x4c14], ebx
mov byte [ebp - 0x4c24], bl
jb 0x100191a2
mov edx, dword [ebp - 0x4c78]
push edx
call fcn.10032f50
add esp, 4
cmp dword [ebp - 0x4c80], 0x10
mov dword [ebp - 0x4c64], 0xf
mov dword [ebp - 0x4c68], ebx
mov byte [ebp - 0x4c78], bl
jb 0x100191d0
mov eax, dword [ebp - 0x4c94]
push eax
call fcn.10032f50
add esp, 4
cmp dword [ebp - 0x4c2c], 0x10
mov dword [ebp - 0x4c80], 0xf
mov dword [ebp - 0x4c84], ebx
mov byte [ebp - 0x4c94], bl
jb 0x100191fe
mov ecx, dword [ebp - 0x4c40]
push ecx
call fcn.10032f50
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x4c48], 0x10
mov dword [ebp - 0x4c2c], 0xf
mov dword [ebp - 0x4c30], ebx
mov byte [ebp - 0x4c40], bl
jb 0x10019233
mov edx, dword [ebp - 0x4c5c]
push edx
call fcn.10032f50
add esp, 4
mov dword [ebp - 0x4c48], 0xf
mov dword [ebp - 0x4c4c], ebx
mov byte [ebp - 0x4c5c], bl
cmp esi, ebx
je 0x100193c7
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x100193cd
mov esi, dword [ebp - 0x4c98]
cmp dword [ebp - 0x4c10], 0x10
jb 0x1001927d
mov eax, dword [ebp - 0x4c24]
push eax
call fcn.10032f50
add esp, 4
cmp dword [ebp - 0x4c64], 0x10
mov dword [ebp - 0x4c10], 0xf
mov dword [ebp - 0x4c14], ebx
mov byte [ebp - 0x4c24], bl
jb 0x100192ab
mov ecx, dword [ebp - 0x4c78]
push ecx
call fcn.10032f50
add esp, 4
cmp dword [ebp - 0x4c80], 0x10
mov dword [ebp - 0x4c64], 0xf
mov dword [ebp - 0x4c68], ebx
mov byte [ebp - 0x4c78], bl
jb 0x100192d9
mov edx, dword [ebp - 0x4c94]
push edx
call fcn.10032f50
add esp, 4
cmp dword [ebp - 0x4c2c], 0x10
mov dword [ebp - 0x4c80], 0xf
mov dword [ebp - 0x4c84], ebx
mov byte [ebp - 0x4c94], bl
jb 0x10019307
mov eax, dword [ebp - 0x4c40]
push eax
call fcn.10032f50
add esp, 4
mov dword [ebp - 0x4c2c], 0xf
mov dword [ebp - 0x4c30], ebx
mov byte [ebp - 0x4c40], bl
jmp 0x10019325
mov esi, dword [ebp - 0x4c98]
cmp esi, ebx
je 0x10019334
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x1001933a
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
je 0x10019341
push edi
call esi
mov eax, dword [ebp - 0x4ca0]
cmp eax, ebx
je 0x1001934e
push eax
call esi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x4c48], 0x10
jb 0x1001936d
mov ecx, dword [ebp - 0x4c5c]
push ecx
call fcn.10032f50
add esp, 4
mov eax, dword [ebp - 0x4cb4]
mov esi, dword [eax]
mov ecx, dword [eax + 4]
inc dword [ebp - 0x4c9c]
add dword [ebp - 0x4ca4], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x4c48], 0xf
mov dword [ebp - 0x4c4c], ebx
mov byte [ebp - 0x4c5c], bl
cmp dword [ebp - 0x4c9c], eax
jb 0x10018da6
mov esi, dword [ebp - 0x4c98]
jmp 0x10019249
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
je 0x100193d4
push edi
call esi
mov eax, dword [ebp - 0x4ca0]
cmp eax, ebx
je 0x100193e1
push eax
call esi
cmp dword [ebp - 0x4cac], ebx
je 0x10019424
mov eax, dword [ebp - 0x4c9c]
mov edx, dword [ebp - 0x4cb4]
mov edi, dword [ebp - 0x4cb0]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx]
push 0xffffffffffffffff
lea eax, [eax + ecx*4]
push ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov byte [edi], bl
call fcn.10002da0
mov eax, edi
jmp 0x10019445
mov esi, dword [ebp - 0x4cb0]
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x100534f8
mov ecx, esi
mov byte [esi], bl
call fcn.100028b0
mov eax, esi
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.10034eea
mov esp, ebp
pop ebp
ret