Function at 0x4cca90
Capabilities:
Check for software breakpoints
Check http status code
Check internet connectivity via wininet
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x4e78bc
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
mov dword fs:[0], esp
call fcn.004d06c0
mov eax, dword [0x52d320]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x1050], eax
mov esi, 0x50
call dword [0x4ea6b0]
mov dword [esp + 0x105c], 0
mov ebx, dword [esp + 0x1064]
test ebx, ebx
mov ebp, dword [0x4ea7b4]
je 0x4ccaf5
push ebx
call ebp
mov esi, eax
add esp, 4
add esi, 0x50
mov eax, dword [esp + 0x1068]
test eax, eax
je 0x4ccb08
push eax
call ebp
add esp, 4
add esi, eax
mov eax, dword [esp + 0x106c]
test eax, eax
je 0x4ccb1b
push eax
call ebp
add esp, 4
add esi, eax
lea edi, [esi + esi + 0x13]
push edi
call dword [0x4ea7c8]
mov esi, eax
add esp, 4
test esi, esi
je 0x4ccd63
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x4f
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [0x4ea898]
push str.http:__diagnose.client.sandai.net_temp_
push esi
call edi
add esp, 0xc
test ebx, ebx
je 0x4ccb73
push ebx
call ebp
push eax
push ebx
push esi
call edi
push 1
push 0x4fbc24
push esi
call edi
add esp, 0x1c
mov ebx, dword [esp + 0x1068]
test ebx, ebx
je 0x4ccb93
push ebx
call ebp
push eax
push ebx
push esi
call edi
push 1
push 0x4fbc24
push esi
call edi
add esp, 0x1c
mov ebx, dword [esp + 0x106c]
test ebx, ebx
je 0x4ccbca
push ebx
call ebp
push eax
push ebx
push esi
call edi
mov eax, dword [esp + 0x1084]
add esp, 0x10
test eax, eax
je 0x4ccbbd
push 0x11
push str._ServerConfig.ini
jmp 0x4ccbc4
push 4
push 0x4eb830
push esi
call edi
add esp, 0xc
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
xor ebp, ebp
cmp eax, ebp
jne 0x4ccd59
push ebp
push ebp
push ebp
push 1
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebp
je 0x4ccd59
mov ecx, dword [esp + 0x4c]
mov edi, 8
cmp ecx, edi
mov ecx, dword [esp + 0x38]
jae 0x4ccc09
lea ecx, [esp + 0x38]
mov edx, dword [esp + 0x48]
push ebp
push 0x84000100
push edx
push ecx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
cmp ebx, ebp
je 0x4ccd59
push ebp
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20000013
mov dword [esp + 0x34], edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x44], 4
call edi
mov eax, dword [esp + 0x14]
cmp eax, 0xc8
je 0x4ccc95
cmp eax, 0xc9
je 0x4ccc95
cmp eax, 0xca
je 0x4ccc95
cmp eax, 0xcb
je 0x4ccc95
cmp eax, 0xcc
je 0x4ccc95
cmp eax, 0xcd
je 0x4ccc95
cmp eax, 0xce
jne 0x4ccd59
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
push 0x20000005
push ebx
call edi
mov ecx, dword [esp + 0x1070]
push 0
push 0
push 2
push 0
push 0
push 0x1f01ff
push ecx
call dword [0x4ea2f8]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ccd59
lea edx, [esp + 0x10]
push edx
push 0x1000
lea eax, [esp + 0x58]
push eax
push ebx
mov dword [esp + 0x20], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4ccd52
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ccda2
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x5c]
push edx
push edi
mov dword [esp + 0x2c], 0
call dword [0x4ea330]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
add ebp, eax
adc edx, 0
test eax, eax
mov dword [esp + 0x2c], edx
je 0x4ccd52
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x58]
push ecx
push ebx
mov dword [esp + 0x20], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4cccf3
push edi
call dword [0x4ea2b4]
push esi
call dword [0x4ea794]
add esp, 4
mov dword [esp + 0x105c], 0xffffffff
lea ecx, [esp + 0x34]
call dword [0x4ea4f8]
mov eax, 1
mov ecx, dword [esp + 0x1054]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1044]
pop ebx
call fcn.004d0557
add esp, 0x1050
ret
mov edx, dword [esp + 0x1c]
cmp edx, ebp
jne 0x4ccd52
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x2c]
jne 0x4ccd52
push edi
call dword [0x4ea2b4]
push esi
call dword [0x4ea794]
add esp, 4
mov dword [esp + 0x105c], 0xffffffff
lea ecx, [esp + 0x34]
call dword [0x4ea4f8]
xor eax, eax
jmp 0x4ccd7d