Function at 0x10018e60
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 0x1004c717
mov eax, dword fs:[0]
push eax
mov eax, 0x4cf4
call fcn.10040450
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 0x10019564
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.10037e20
mov eax, dword [ebp - 0x4c5c]
add esp, 0xc
cmp dword [ebp - 0x4c48], 0x10
jae 0x10018f41
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 0x10018f50
lea ecx, [ebp - 0x3f0]
push 0x10053a94
push ecx
call fcn.10036580
add esp, 8
cmp eax, ebx
je 0x10018fa4
mov byte [eax], bl
lea eax, [ebp - 0x3f8]
dec eax
jmp 0x10018f80
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10018f80
mov edx, dword [str._1.gif]
mov cx, word [0x100544d8]
mov dword [eax], edx
mov dl, byte [0x100544da]
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 0x1001945f
push 0x38
lea eax, [ebp - 0x4cf4]
push ebx
push eax
mov dword [ebp - 0x4cf8], 0x3c
call fcn.10037e20
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 0x10019179
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 0x100190f1
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 0x10019112
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 0x10019133
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 0x10019154
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 0x1001917f
lea edx, [ebp - 0x4c24]
mov ecx, dword [ebp - 0x4c78]
mov esi, 0x10
cmp dword [ebp - 0x4c64], esi
jae 0x10019198
lea ecx, [ebp - 0x4c78]
mov eax, dword [ebp - 0x4c40]
cmp dword [ebp - 0x4c2c], esi
jae 0x100191ac
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 0x1001939f
mov eax, dword [ebp - 0x4c94]
mov dword [ebp - 0x4d00], 0x100544bc
mov dword [ebp - 0x4cfc], ebx
cmp dword [ebp - 0x4c80], esi
jae 0x100191fb
lea eax, [ebp - 0x4c94]
push 1
push 0x84480000
lea ecx, [ebp - 0x4d00]
push ecx
push ebx
push str.HTTP_1.1
push eax
push 0x100544dc
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [ebp - 0x4c98], esi
cmp esi, ebx
je 0x100193a5
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x100193a5
push 0x2800
lea edx, [ebp - 0x4404]
push ebx
push edx
call fcn.10037e20
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 0x100544e0
push edx
call fcn.10049b79
add esp, 0xc
test eax, eax
jne 0x100193a5
cmp dword [ebp - 0x4c10], 0x10
mov dword [ebp - 0x4cac], 1
jb 0x100192b4
mov ecx, dword [ebp - 0x4c24]
push ecx
call fcn.10032d80
add esp, 4
cmp dword [ebp - 0x4c64], 0x10
mov dword [ebp - 0x4c10], 0xf
mov dword [ebp - 0x4c14], ebx
mov byte [ebp - 0x4c24], bl
jb 0x100192e2
mov edx, dword [ebp - 0x4c78]
push edx
call fcn.10032d80
add esp, 4
cmp dword [ebp - 0x4c80], 0x10
mov dword [ebp - 0x4c64], 0xf
mov dword [ebp - 0x4c68], ebx
mov byte [ebp - 0x4c78], bl
jb 0x10019310
mov eax, dword [ebp - 0x4c94]
push eax
call fcn.10032d80
add esp, 4
cmp dword [ebp - 0x4c2c], 0x10
mov dword [ebp - 0x4c80], 0xf
mov dword [ebp - 0x4c84], ebx
mov byte [ebp - 0x4c94], bl
jb 0x1001933e
mov ecx, dword [ebp - 0x4c40]
push ecx
call fcn.10032d80
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 0x10019373
mov edx, dword [ebp - 0x4c5c]
push edx
call fcn.10032d80
add esp, 4
mov dword [ebp - 0x4c48], 0xf
mov dword [ebp - 0x4c4c], ebx
mov byte [ebp - 0x4c5c], bl
cmp esi, ebx
je 0x10019507
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x1001950d
mov esi, dword [ebp - 0x4c98]
cmp dword [ebp - 0x4c10], 0x10
jb 0x100193bd
mov eax, dword [ebp - 0x4c24]
push eax
call fcn.10032d80
add esp, 4
cmp dword [ebp - 0x4c64], 0x10
mov dword [ebp - 0x4c10], 0xf
mov dword [ebp - 0x4c14], ebx
mov byte [ebp - 0x4c24], bl
jb 0x100193eb
mov ecx, dword [ebp - 0x4c78]
push ecx
call fcn.10032d80
add esp, 4
cmp dword [ebp - 0x4c80], 0x10
mov dword [ebp - 0x4c64], 0xf
mov dword [ebp - 0x4c68], ebx
mov byte [ebp - 0x4c78], bl
jb 0x10019419
mov edx, dword [ebp - 0x4c94]
push edx
call fcn.10032d80
add esp, 4
cmp dword [ebp - 0x4c2c], 0x10
mov dword [ebp - 0x4c80], 0xf
mov dword [ebp - 0x4c84], ebx
mov byte [ebp - 0x4c94], bl
jb 0x10019447
mov eax, dword [ebp - 0x4c40]
push eax
call fcn.10032d80
add esp, 4
mov dword [ebp - 0x4c2c], 0xf
mov dword [ebp - 0x4c30], ebx
mov byte [ebp - 0x4c40], bl
jmp 0x10019465
mov esi, dword [ebp - 0x4c98]
cmp esi, ebx
je 0x10019474
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x1001947a
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
je 0x10019481
push edi
call esi
mov eax, dword [ebp - 0x4ca0]
cmp eax, ebx
je 0x1001948e
push eax
call esi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x4c48], 0x10
jb 0x100194ad
mov ecx, dword [ebp - 0x4c5c]
push ecx
call fcn.10032d80
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 0x10018ee6
mov esi, dword [ebp - 0x4c98]
jmp 0x10019389
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
je 0x10019514
push edi
call esi
mov eax, dword [ebp - 0x4ca0]
cmp eax, ebx
je 0x10019521
push eax
call esi
cmp dword [ebp - 0x4cac], ebx
je 0x10019564
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 0x10019585
mov esi, dword [ebp - 0x4cb0]
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x10053510
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.10034d1a
mov esp, ebp
pop ebp
ret