Function at 0x438be0
Capabilities:
Check internet connectivity via wininet
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 0xffffffffffffffff
push 0x4514ba
mov eax, dword fs:[0]
push eax
sub esp, 0x66c
mov eax, dword [0x464080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x668], ecx
mov dword [ebp - 0x4a4], 4
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x484], 0
push 0
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x455fb0
lea ecx, [ebp - 0x47c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [ebp - 0x668]
cmp dword [edx], 0
je 0x438cbc
mov eax, dword [ebp - 0x668]
add eax, 0xcc
push eax
mov ecx, dword [ebp - 0x668]
add ecx, 4
push ecx
push 0x455fc4
lea edx, [ebp - 0x644]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
lea eax, [ebp - 0x644]
push eax
push 3
lea ecx, [ebp - 0x47c]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x4a0], eax
jmp 0x438cff
mov edx, dword [ebp - 0x4a8]
and edx, 4
jne 0x438ce4
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x4a0], eax
jmp 0x438cff
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x47c]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x4a0], eax
cmp dword [ebp - 0x4a0], 0
jne 0x438d20
push 0x455fe8
call sym.Install_style.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_style.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
xor eax, eax
jmp 0x4393ca
mov dword [ebp - 0x4b0], 0xbb8
push 4
lea edx, [ebp - 0x4b0]
push edx
push 2
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x498]
call fcn.00406320
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x480]
call fcn.004062e0
mov byte [ebp - 4], 1
push 0
push 0x456014
lea ecx, [ebp - 0x498]
call fcn.00412120
add eax, 2
mov dword [ebp - 0x488], eax
mov edx, dword [ebp - 0x488]
add edx, 1
push edx
push 0x456018
lea ecx, [ebp - 0x498]
call fcn.00412120
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
jle 0x438e69
mov eax, dword [ebp - 0x4ac]
sub eax, dword [ebp - 0x488]
push eax
mov ecx, dword [ebp - 0x488]
push ecx
lea edx, [ebp - 0x650]
push edx
lea ecx, [ebp - 0x498]
call fcn.00410910
mov dword [ebp - 0x66c], eax
mov eax, dword [ebp - 0x66c]
mov dword [ebp - 0x670], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x670]
push ecx
lea ecx, [ebp - 0x480]
call fcn.004063c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x650]
call fcn.004063a0
lea ecx, [ebp - 0x498]
call fcn.00419570
sub eax, dword [ebp - 0x4ac]
push eax
lea edx, [ebp - 0x654]
push edx
lea ecx, [ebp - 0x498]
call fcn.004109f0
mov dword [ebp - 0x674], eax
mov eax, dword [ebp - 0x674]
mov dword [ebp - 0x678], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x678]
push ecx
lea ecx, [ebp - 0x498]
call fcn.004063c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x654]
call fcn.004063a0
jmp 0x438e88
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x480]
call fcn.004063e0
push 0x45601c
lea ecx, [ebp - 0x498]
call fcn.004063e0
mov dword [ebp - 0x490], 0
mov eax, dword [ebp - 0x668]
mov ecx, dword [ebp - 0x490]
cmp ecx, dword [eax + 0x1b0]
jge 0x438f7a
push 0
push SysReAllocString
push 3
push 0
push 0
push 0x50
lea ecx, [ebp - 0x480]
call fcn.00414010
push eax
mov edx, dword [ebp - 0x4a0]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x4b4], eax
cmp dword [ebp - 0x4b4], 0
je 0x438eeb
jmp 0x438f7a
mov eax, dword [ebp - 0x490]
add eax, 1
mov dword [ebp - 0x490], eax
mov ecx, dword [ebp - 0x668]
mov edx, dword [ebp - 0x490]
cmp edx, dword [ecx + 0x1b0]
jl 0x438f62
push 0x456020
call sym.Install_style.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_style.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x658], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x480]
call fcn.004063a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x498]
call fcn.004063a0
mov eax, dword [ebp - 0x658]
jmp 0x4393ca
mov ecx, dword [ebp - 0x668]
mov edx, dword [ecx + 0x1b4]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x438e92
mov eax, dword [ebp - 0x668]
cmp dword [eax], 0
je 0x438fe5
mov ecx, dword [ebp - 0x668]
add ecx, 0xe4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp - 0x668]
add edx, 0xe4
push edx
push 0x2b
mov eax, dword [ebp - 0x4b4]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, dword [ebp - 0x668]
add ecx, 0x148
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp - 0x668]
add edx, 0x148
push edx
push 0x2c
mov eax, dword [ebp - 0x4b4]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push SysReAllocString
push 0x466158
push 0
push 0x456058
lea ecx, [ebp - 0x498]
call fcn.00414010
push eax
push str.POST
mov ecx, dword [ebp - 0x4b4]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0
jne 0x439086
push 0x456078
call sym.Install_style.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_style.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov edx, dword [ebp - 0x4b4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x65c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x480]
call fcn.004063a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x498]
call fcn.004063a0
mov eax, dword [ebp - 0x65c]
jmp 0x4393ca
xor ecx, ecx
mov word [ebp - 0x3fc], cx
push 0x3e6
push 0
lea edx, [ebp - 0x3fa]
push edx
call fcn.00421340
add esp, 0xc
push 0x4560a8
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x456130
lea ecx, [ebp - 0x3fc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x456170
lea edx, [ebp - 0x3fc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4561c0
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4561b4
lea ecx, [ebp - 0x3fc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x480]
call fcn.00414010
push eax
lea edx, [ebp - 0x3fc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x456218
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x456220
lea ecx, [ebp - 0x3fc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Content_Type:_application_x_www_form_urlencoded_r_n
lea edx, [ebp - 0x3fc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xa0000000
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [ebp - 0x3fc]
push ecx
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov eax, dword [ebp - 0x484]
push eax
mov ecx, dword [ebp - 0x668]
call sym.Install_style.exe_public:_int___thiscall_CNsNet::isGzip_void__
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x49c], 0x4000
mov ecx, dword [ebp - 0x49c]
cmp ecx, dword [ebp + 0x18]
jl 0x4391c7
mov edx, dword [ebp + 0x18]
sub edx, 1
mov dword [ebp - 0x49c], edx
mov dword [ebp - 0x48c], 0
mov eax, dword [ebp + 0x18]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00421340
add esp, 0xc
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x668]
movzx ecx, byte [eax + 0x1ac]
test ecx, ecx
jne 0x4392dc
mov edx, dword [ebp - 0x48c]
add edx, dword [ebp - 0x49c]
cmp edx, dword [ebp + 0x18]
jge 0x4392dc
mov dword [ebp - 0x648], 0
lea eax, [ebp - 0x648]
push eax
mov ecx, dword [ebp - 0x49c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x484]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4392ae
push 0x456274
call sym.Install_style.exe_public:_static_class_CNsLog____cdecl_CNsLog::Instance_void_
mov ecx, eax
call sym.Install_style.exe_public:_void___thiscall_CNsLog::WriteLog_wchar_t_const__
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x4b4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x660], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x480]
call fcn.004063a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x498]
call fcn.004063a0
mov eax, dword [ebp - 0x660]
jmp 0x4393ca
cmp dword [ebp - 0x648], 0
jne 0x4392b9
jmp 0x4392dc
mov ecx, dword [ebp - 0x48c]
add ecx, dword [ebp - 0x648]
mov dword [ebp - 0x48c], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x648]
mov dword [ebp - 0x10], edx
jmp 0x4391e9
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
cmp dword [ebp - 0x494], 0
jne 0x4392ff
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00421cc0
add esp, 4
cmp dword [ebp - 0x48c], eax
je 0x439372
mov dword [ebp - 0x64c], 0
lea edx, [ebp + 0x18]
push edx
lea eax, [ebp - 0x64c]
push eax
mov ecx, dword [ebp - 0x48c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call sym.Install_style.exe_public:_static_class_CNsZlib____cdecl_CNsZlib::Instance_void_
mov ecx, eax
call sym.Install_style.exe_public:_long_int___thiscall_CNsZlib::DecodeGZipBuffer_unsigned_char___long_int__unsigned_char____long_int__
cmp dword [ebp - 0x64c], 0
je 0x439372
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x64c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.00421d50
add esp, 0xc
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov byte [eax], 0
mov ecx, dword [ebp - 0x668]
mov edx, dword [ebp + 0x18]
mov dword [ecx + 0x1b8], edx
mov eax, dword [ebp - 0x64c]
push eax
call fcn.004212fd
add esp, 4
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x4b4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x4a0]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x664], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x480]
call fcn.004063a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x498]
call fcn.004063a0
mov eax, dword [ebp - 0x664]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042047a
mov esp, ebp
pop ebp
ret 0x14