Function at 0x417b10
Capabilities:
Check for software breakpoints
Check http status code
Check internet connectivity via wininet
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41c23c
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
mov dword fs:[0], esp
call fcn.00418250
mov eax, dword [0x427480]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x1050], eax
mov esi, 0x50
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0x105c], 0
mov ebx, dword [esp + 0x1064]
test ebx, ebx
mov ebp, dword [sym.imp.MSVCR71.dll_wcslen]
je 0x417b75
push ebx
call ebp
mov esi, eax
add esp, 4
add esi, 0x50
mov eax, dword [esp + 0x1068]
test eax, eax
je 0x417b88
push eax
call ebp
add esp, 4
add esi, eax
mov eax, dword [esp + 0x106c]
test eax, eax
je 0x417b9b
push eax
call ebp
add esp, 4
add esi, eax
lea edi, [esi + esi + 0x13]
push edi
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x417de3
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 [sym.imp.MSVCR71.dll_wcsncat]
push str.http:__diagnose.client.sandai.net_temp_
push esi
call edi
add esp, 0xc
test ebx, ebx
je 0x417bf3
push ebx
call ebp
push eax
push ebx
push esi
call edi
push 1
push 0x41f100
push esi
call edi
add esp, 0x1c
mov ebx, dword [esp + 0x1068]
test ebx, ebx
je 0x417c13
push ebx
call ebp
push eax
push ebx
push esi
call edi
push 1
push 0x41f100
push esi
call edi
add esp, 0x1c
mov ebx, dword [esp + 0x106c]
test ebx, ebx
je 0x417c4a
push ebx
call ebp
push eax
push ebx
push esi
call edi
mov eax, dword [esp + 0x1084]
add esp, 0x10
test eax, eax
je 0x417c3d
push 0x11
push str._ServerConfig.ini
jmp 0x417c44
push 4
push str..zip
push esi
call edi
add esp, 0xc
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
xor ebp, ebp
cmp eax, ebp
jne 0x417dd9
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 0x417dd9
mov ecx, dword [esp + 0x4c]
mov edi, 8
cmp ecx, edi
mov ecx, dword [esp + 0x38]
jae 0x417c89
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 0x417dd9
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 0x417d15
cmp eax, 0xc9
je 0x417d15
cmp eax, 0xca
je 0x417d15
cmp eax, 0xcb
je 0x417d15
cmp eax, 0xcc
je 0x417d15
cmp eax, 0xcd
je 0x417d15
cmp eax, 0xce
jne 0x417dd9
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 [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417dd9
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 0x417dd2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x417e22
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 [sym.imp.KERNEL32.dll_WriteFile]
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 0x417dd2
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 0x417d73
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov dword [esp + 0x105c], 0xffffffff
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
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.004181a1
add esp, 0x1050
ret
mov edx, dword [esp + 0x1c]
cmp edx, ebp
jne 0x417dd2
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x2c]
jne 0x417dd2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov dword [esp + 0x105c], 0xffffffff
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x417dfd