Function at 0x10018df0
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 0x1004c7c7
mov eax, dword fs:[0]
push eax
mov eax, 0x4cf4
call fcn.10040480
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 0x100194f4
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.10037e50
mov eax, dword [ebp - 0x4c5c]
add esp, 0xc
cmp dword [ebp - 0x4c48], 0x10
jae 0x10018ed1
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 0x10018ee0
lea ecx, [ebp - 0x3f0]
push 0x10053aa4
push ecx
call fcn.100365b0
add esp, 8
cmp eax, ebx
je 0x10018f34
mov byte [eax], bl
lea eax, [ebp - 0x3f8]
dec eax
jmp 0x10018f10
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10018f10
mov edx, dword [str._1.gif]
mov cx, word [0x100544c4]
mov dword [eax], edx
mov dl, byte [0x100544c6]
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 0x100193ef
push 0x38
lea eax, [ebp - 0x4cf4]
push ebx
push eax
mov dword [ebp - 0x4cf8], 0x3c
call fcn.10037e50
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 0x10019109
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 0x10019081
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 0x100190a2
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 0x100190c3
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 0x100190e4
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 0x1001910f
lea edx, [ebp - 0x4c24]
mov ecx, dword [ebp - 0x4c78]
mov esi, 0x10
cmp dword [ebp - 0x4c64], esi
jae 0x10019128
lea ecx, [ebp - 0x4c78]
mov eax, dword [ebp - 0x4c40]
cmp dword [ebp - 0x4c2c], esi
jae 0x1001913c
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 0x1001932f
mov eax, dword [ebp - 0x4c94]
mov dword [ebp - 0x4d00], 0x100544a8
mov dword [ebp - 0x4cfc], ebx
cmp dword [ebp - 0x4c80], esi
jae 0x1001918b
lea eax, [ebp - 0x4c94]
push 1
push 0x84480000
lea ecx, [ebp - 0x4d00]
push ecx
push ebx
push str.HTTP_1.1
push eax
push 0x100544c8
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [ebp - 0x4c98], esi
cmp esi, ebx
je 0x10019335
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x10019335
push 0x2800
lea edx, [ebp - 0x4404]
push ebx
push edx
call fcn.10037e50
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 0x100544cc
push edx
call fcn.10049ba9
add esp, 0xc
test eax, eax
jne 0x10019335
cmp dword [ebp - 0x4c10], 0x10
mov dword [ebp - 0x4cac], 1
jb 0x10019244
mov ecx, dword [ebp - 0x4c24]
push ecx
call fcn.10032db0
add esp, 4
cmp dword [ebp - 0x4c64], 0x10
mov dword [ebp - 0x4c10], 0xf
mov dword [ebp - 0x4c14], ebx
mov byte [ebp - 0x4c24], bl
jb 0x10019272
mov edx, dword [ebp - 0x4c78]
push edx
call fcn.10032db0
add esp, 4
cmp dword [ebp - 0x4c80], 0x10
mov dword [ebp - 0x4c64], 0xf
mov dword [ebp - 0x4c68], ebx
mov byte [ebp - 0x4c78], bl
jb 0x100192a0
mov eax, dword [ebp - 0x4c94]
push eax
call fcn.10032db0
add esp, 4
cmp dword [ebp - 0x4c2c], 0x10
mov dword [ebp - 0x4c80], 0xf
mov dword [ebp - 0x4c84], ebx
mov byte [ebp - 0x4c94], bl
jb 0x100192ce
mov ecx, dword [ebp - 0x4c40]
push ecx
call fcn.10032db0
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 0x10019303
mov edx, dword [ebp - 0x4c5c]
push edx
call fcn.10032db0
add esp, 4
mov dword [ebp - 0x4c48], 0xf
mov dword [ebp - 0x4c4c], ebx
mov byte [ebp - 0x4c5c], bl
cmp esi, ebx
je 0x10019497
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x1001949d
mov esi, dword [ebp - 0x4c98]
cmp dword [ebp - 0x4c10], 0x10
jb 0x1001934d
mov eax, dword [ebp - 0x4c24]
push eax
call fcn.10032db0
add esp, 4
cmp dword [ebp - 0x4c64], 0x10
mov dword [ebp - 0x4c10], 0xf
mov dword [ebp - 0x4c14], ebx
mov byte [ebp - 0x4c24], bl
jb 0x1001937b
mov ecx, dword [ebp - 0x4c78]
push ecx
call fcn.10032db0
add esp, 4
cmp dword [ebp - 0x4c80], 0x10
mov dword [ebp - 0x4c64], 0xf
mov dword [ebp - 0x4c68], ebx
mov byte [ebp - 0x4c78], bl
jb 0x100193a9
mov edx, dword [ebp - 0x4c94]
push edx
call fcn.10032db0
add esp, 4
cmp dword [ebp - 0x4c2c], 0x10
mov dword [ebp - 0x4c80], 0xf
mov dword [ebp - 0x4c84], ebx
mov byte [ebp - 0x4c94], bl
jb 0x100193d7
mov eax, dword [ebp - 0x4c40]
push eax
call fcn.10032db0
add esp, 4
mov dword [ebp - 0x4c2c], 0xf
mov dword [ebp - 0x4c30], ebx
mov byte [ebp - 0x4c40], bl
jmp 0x100193f5
mov esi, dword [ebp - 0x4c98]
cmp esi, ebx
je 0x10019404
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x1001940a
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
je 0x10019411
push edi
call esi
mov eax, dword [ebp - 0x4ca0]
cmp eax, ebx
je 0x1001941e
push eax
call esi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x4c48], 0x10
jb 0x1001943d
mov ecx, dword [ebp - 0x4c5c]
push ecx
call fcn.10032db0
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 0x10018e76
mov esi, dword [ebp - 0x4c98]
jmp 0x10019319
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
je 0x100194a4
push edi
call esi
mov eax, dword [ebp - 0x4ca0]
cmp eax, ebx
je 0x100194b1
push eax
call esi
cmp dword [ebp - 0x4cac], ebx
je 0x100194f4
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 0x10019515
mov esi, dword [ebp - 0x4cb0]
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x10053520
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.10034d4a
mov esp, ebp
pop ebp
ret