Function at 0x10018cd0
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 0x1004c787
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 0x100193d4
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 0x10018db1
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 0x10018dc0
lea ecx, [ebp - 0x3f0]
push 0x10053aa4
push ecx
call fcn.10036580
add esp, 8
cmp eax, ebx
je 0x10018e14
mov byte [eax], bl
lea eax, [ebp - 0x3f8]
dec eax
jmp 0x10018df0
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10018df0
mov edx, dword [str._1.gif]
mov cx, word [0x100544f8]
mov dword [eax], edx
mov dl, byte [0x100544fa]
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 0x100192cf
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 0x10018fe9
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 0x10018f61
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 0x10018f82
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 0x10018fa3
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 0x10018fc4
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 0x10018fef
lea edx, [ebp - 0x4c24]
mov ecx, dword [ebp - 0x4c78]
mov esi, 0x10
cmp dword [ebp - 0x4c64], esi
jae 0x10019008
lea ecx, [ebp - 0x4c78]
mov eax, dword [ebp - 0x4c40]
cmp dword [ebp - 0x4c2c], esi
jae 0x1001901c
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 0x1001920f
mov eax, dword [ebp - 0x4c94]
mov dword [ebp - 0x4d00], 0x100544dc
mov dword [ebp - 0x4cfc], ebx
cmp dword [ebp - 0x4c80], esi
jae 0x1001906b
lea eax, [ebp - 0x4c94]
push 1
push 0x84480000
lea ecx, [ebp - 0x4d00]
push ecx
push ebx
push str.HTTP_1.1
push eax
push 0x100544fc
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
mov dword [ebp - 0x4c98], esi
cmp esi, ebx
je 0x10019215
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x10019215
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 0x10054500
push edx
call fcn.10049b79
add esp, 0xc
test eax, eax
jne 0x10019215
cmp dword [ebp - 0x4c10], 0x10
mov dword [ebp - 0x4cac], 1
jb 0x10019124
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 0x10019152
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 0x10019180
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 0x100191ae
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 0x100191e3
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 0x10019377
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x1001937d
mov esi, dword [ebp - 0x4c98]
cmp dword [ebp - 0x4c10], 0x10
jb 0x1001922d
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 0x1001925b
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 0x10019289
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 0x100192b7
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 0x100192d5
mov esi, dword [ebp - 0x4c98]
cmp esi, ebx
je 0x100192e4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x100192ea
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
je 0x100192f1
push edi
call esi
mov eax, dword [ebp - 0x4ca0]
cmp eax, ebx
je 0x100192fe
push eax
call esi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x4c48], 0x10
jb 0x1001931d
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 0x10018d56
mov esi, dword [ebp - 0x4c98]
jmp 0x100191f9
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
je 0x10019384
push edi
call esi
mov eax, dword [ebp - 0x4ca0]
cmp eax, ebx
je 0x10019391
push eax
call esi
cmp dword [ebp - 0x4cac], ebx
je 0x100193d4
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 0x100193f5
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.10034d1a
mov esp, ebp
pop ebp
ret