Function at 0x4c3ea8
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x20b
push 0
push 0
dec ecx
jne 0x4c3eb1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], edx
mov esi, eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4c4382
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004c3c48
test al, al
je 0x4c4324
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00406134
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov ecx, 0
call fcn.00405f64
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor edx, edx
push ebp
push 0x4c431d
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 1
push 0
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4c3f62
call fcn.00404c14
jmp 0x4c4324
push 0
push 0
push 3
push 0
push 0
movzx eax, word [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405dac
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetConnectW
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], 0
jne 0x4c3f96
call fcn.00404c14
jmp 0x4c4324
push 0
push 0x80000000
push 0
mov eax, esi
call fcn.00405dac
push eax
push 0x4c4398
mov eax, dword [ebp - 8]
call fcn.00405dac
push eax
push 0x4c43ac
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4c3fd6
call fcn.00404c14
jmp 0x4c4324
xor ecx, ecx
mov dl, 1
mov eax, dword [0x420868]
call fcn.004262f4
mov dword [ebp - 0x20], eax
push 0x4c43c4
push dword [ebp - 4]
push 0x4c43e0
lea eax, [ebp - 0x1038]
mov edx, 3
call fcn.004062d8
mov edx, dword [ebp - 0x1038]
mov eax, dword [ebp - 0x20]
call fcn.0042643c
mov edx, 0x4c43f4
mov eax, dword [ebp - 0x20]
call fcn.0042643c
mov edx, 0x4c44d8
mov eax, dword [ebp - 0x20]
call fcn.0042643c
mov edx, 0x4c4500
mov eax, dword [ebp - 0x20]
call fcn.0042643c
mov edx, 0x4c4540
mov eax, dword [ebp - 0x20]
call fcn.0042643c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c4065
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x4c4065
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00405528
mov esi, eax
test esi, esi
je 0x4c4070
sub esi, 4
mov esi, dword [esi]
push 0x4c45b0
lea edx, [ebp - 0x1040]
mov eax, esi
call fcn.0040c4f8
push dword [ebp - 0x1040]
push 0x4c43e0
lea eax, [ebp - 0x103c]
mov edx, 3
call fcn.004062d8
mov edx, dword [ebp - 0x103c]
mov eax, dword [ebp - 0x20]
call fcn.0042643c
mov edx, 0x4c45e0
mov eax, dword [ebp - 0x20]
call fcn.0042643c
mov edx, 0x4c4620
mov eax, dword [ebp - 0x20]
call fcn.0042643c
mov edx, 0x4c4654
mov eax, dword [ebp - 0x20]
call fcn.0042643c
test edi, edi
jne 0x4c40de
test ebx, ebx
je 0x4c4167
call fcn.00415118
push eax
push 1
push edi
push 0x4c4694
push ebx
lea eax, [ebp - 0x1044]
mov edx, 3
call fcn.004062d8
mov ecx, dword [ebp - 0x1044]
mov dl, 1
mov eax, dword [0x420868]
call fcn.00426338
mov esi, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx]
mov edx, eax
lea ecx, [ebp - 0x1048]
mov eax, dword [esi + 4]
call fcn.004c3ba0
mov edx, dword [ebp - 0x1048]
lea eax, [ebp - 0x10]
call fcn.00405f3c
push 0x4c46a4
push dword [ebp - 0x10]
push 0x4c43e0
lea eax, [ebp - 0x104c]
mov edx, 3
call fcn.004062d8
mov edx, dword [ebp - 0x104c]
mov eax, dword [ebp - 0x20]
call fcn.0042643c
mov eax, esi
call fcn.00403d4c
mov edx, 0x4c43e0
mov eax, dword [ebp - 0x20]
call fcn.0042643c
lea edx, [ebp - 0x1050]
mov eax, dword [ebp - 0x20]
call fcn.0042641c
mov eax, dword [ebp - 0x1050]
mov dword [ebp - 0x1054], eax
mov ebx, dword [ebp - 0x1054]
test ebx, ebx
je 0x4c419d
sub ebx, 4
mov ebx, dword [ebx]
push 0x20000000
push ebx
lea edx, [ebp - 0x1058]
mov eax, dword [ebp - 0x20]
call fcn.0042641c
mov eax, dword [ebp - 0x1058]
call fcn.00405dac
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.wininet.dll_HttpAddRequestHeadersW
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c41e5
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x4c41e5
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00405528
mov ebx, eax
test ebx, ebx
je 0x4c41f0
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 0x14]
call fcn.00405778
push eax
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
call sub.wininet.dll_HttpSendRequestW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
cmp dword [ebp + 8], 0
je 0x4c42bc
mov dl, 1
mov eax, dword [0x420748]
call fcn.00403d1c
mov dword [ebp - 0x30], eax
jmp 0x4c4242
cmp dword [ebp - 0x34], 0
je 0x4c425f
lea edx, [ebp - 0x1034]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [ebp - 0x34]
push eax
push 0x1000
lea eax, [ebp - 0x1034]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x4c422b
mov word [ebp - 0x1034], 0
lea edx, [ebp - 0x1034]
mov ecx, 1
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov dl, 1
mov eax, dword [0x40b94c]
call fcn.004153b0
mov esi, eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx]
push eax
lea eax, [ebp - 0x105c]
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 4]
xor ecx, ecx
mov eax, esi
call fcn.0041506c
mov edx, dword [ebp - 0x105c]
mov eax, dword [ebp + 8]
call fcn.00405d20
mov eax, esi
call fcn.00403d4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4324
cmp dword [ebp - 0x30], 0
je 0x4c42dc
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x30], edx
call fcn.00403d4c
cmp dword [ebp - 0x20], 0
je 0x4c42ef
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x20], edx
call fcn.00403d4c
cmp dword [ebp - 0x2c], 0
je 0x4c42fe
mov eax, dword [ebp - 0x2c]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0x28], 0
je 0x4c430d
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0x24], 0
je 0x4c431c
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4389
lea eax, [ebp - 0x105c]
mov edx, 2
call fcn.00405d18
lea eax, [ebp - 0x1050]
mov edx, 2
call fcn.00405d18
lea eax, [ebp - 0x1048]
call fcn.00405348
lea eax, [ebp - 0x1044]
mov edx, 4
call fcn.00405d18
lea eax, [ebp - 0x14]
call fcn.00405348
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405d18
ret