Function at 0x43acd0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45156a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x42c8
call fcn.00429800
mov eax, dword [0x464080]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x42b8], ecx
mov dword [ebp - 0xe0], 4
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0x40f4], 0
mov dword [ebp - 0xac], 0
push 0
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.Agent_ld
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [ebp - 0x42b8]
cmp dword [edx], 0
je 0x43adb7
mov eax, dword [ebp - 0x42b8]
add eax, 0xcc
push eax
mov ecx, dword [ebp - 0x42b8]
add ecx, 4
push ecx
push str.HTTPHTTP:___s:_s
lea edx, [ebp - 0x4288]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
lea eax, [ebp - 0x4288]
push eax
push 3
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xdc], eax
jmp 0x43adfa
mov edx, dword [ebp - 0xe4]
and edx, 4
jne 0x43addf
push 0
push 0
push 0
push 1
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xdc], eax
jmp 0x43adfa
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x43ae3a
push 0x456890
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__
cmp dword [ebp + 0x14], 0
je 0x43ae33
sub esp, 8
fldz
fstp qword [esp]
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 4
call dword [ebp + 0x14]
xor eax, eax
jmp 0x43b820
mov dword [ebp - 0x40f0], 0xbb8
push 4
lea eax, [ebp - 0x40f0]
push eax
push 2
mov ecx, dword [ebp - 0xdc]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xd8]
call fcn.00406320
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.004062e0
mov byte [ebp - 4], 1
push 7
push 0x4568c0
lea ecx, [ebp - 0xd8]
call fcn.00412120
mov dword [ebp - 0x40ec], eax
cmp dword [ebp - 0x40ec], 0
jle 0x43af58
mov eax, dword [ebp - 0x40ec]
sub eax, 6
push eax
push 6
lea ecx, [ebp - 0x4294]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00410910
mov dword [ebp - 0x42bc], eax
mov edx, dword [ebp - 0x42bc]
mov dword [ebp - 0x42c0], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x42c0]
push eax
lea ecx, [ebp - 0xa8]
call fcn.004063c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4294]
call fcn.004063a0
lea ecx, [ebp - 0xd8]
call fcn.00419570
sub eax, dword [ebp - 0x40ec]
push eax
lea ecx, [ebp - 0x4298]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.004109f0
mov dword [ebp - 0x42c4], eax
mov edx, dword [ebp - 0x42c4]
mov dword [ebp - 0x42c8], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x42c8]
push eax
lea ecx, [ebp - 0xd8]
call fcn.004063c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4298]
call fcn.004063a0
jmp 0x43af77
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.004063e0
push 0x4568c4
lea ecx, [ebp - 0xd8]
call fcn.004063e0
mov dword [ebp - 0xd4], 0
mov edx, dword [ebp - 0x42b8]
mov eax, dword [ebp - 0xd4]
cmp eax, dword [edx + 0x1b0]
jge 0x43b08c
push 0
push 0x8000000
push 1
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push 0x15
lea ecx, [ebp - 0xa8]
call fcn.00414010
push eax
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x40f4], eax
cmp dword [ebp - 0x40f4], 0
je 0x43afde
jmp 0x43b08c
mov ecx, dword [ebp - 0xd4]
add ecx, 1
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0x42b8]
mov eax, dword [ebp - 0xd4]
cmp eax, dword [edx + 0x1b0]
jl 0x43b074
push 0x4568c8
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__
cmp dword [ebp + 0x14], 0
je 0x43b031
sub esp, 8
fldz
fstp qword [esp]
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 4
call dword [ebp + 0x14]
mov edx, dword [ebp - 0xdc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x429c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.004063a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.004063a0
mov eax, dword [ebp - 0x429c]
jmp 0x43b820
mov eax, dword [ebp - 0x42b8]
mov ecx, dword [eax + 0x1b4]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43af81
mov edx, dword [ebp - 0x42b8]
cmp dword [edx], 0
je 0x43b0f5
mov eax, dword [ebp - 0x42b8]
add eax, 0xe4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp - 0x42b8]
add ecx, 0xe4
push ecx
push 0x2b
mov edx, dword [ebp - 0x40f4]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x42b8]
add eax, 0x148
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp - 0x42b8]
add ecx, 0x148
push ecx
push 0x2c
mov edx, dword [ebp - 0x40f4]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406320
mov byte [ebp - 4], 4
push 0x4568fc
lea ecx, [ebp - 0x14]
call fcn.00414f30
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
cmp dword [ebp + 0x10], 0
je 0x43b149
lea ecx, [ebp - 0x14]
call fcn.00414010
push eax
call sym.Install_style.exe_long_long___int64____cdecl_FileSize_wchar_t_const__
add esp, 4
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
push 0
push 2
push SysReAllocString
lea ecx, [ebp - 0xd8]
call fcn.00414010
push eax
mov ecx, dword [ebp - 0x40f4]
push ecx
call dword [sym.imp.WININET.dll_FtpOpenFileW]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x43b1d6
mov edx, dword [ebp - 0x40f4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x42a0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004063a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.004063a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.004063a0
mov eax, dword [ebp - 0x42a0]
jmp 0x43b820
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xac]
push edx
call dword [sym.imp.WININET.dll_FtpGetFileSize]
xor ecx, ecx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb8]
cmp edx, dword [ebp - 0xc0]
jne 0x43b309
mov eax, dword [ebp - 0xb4]
cmp eax, dword [ebp - 0xbc]
jne 0x43b309
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00414010
push eax
call fcn.0042e598
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x43b2a0
sub esp, 8
fldz
fstp qword [esp]
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xbc]
push edx
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 2
call dword [ebp + 0x14]
mov edx, dword [ebp - 0xac]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x40f4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xdc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x42a4], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004063a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.004063a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.004063a0
mov eax, dword [ebp - 0x42a4]
jmp 0x43b820
lea ecx, [ebp - 0x14]
call fcn.00414010
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x18], 0
push 0x456904
lea ecx, [ebp - 0x14]
call fcn.00414010
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.0042cef5
add esp, 0xc
test eax, eax
je 0x43b3ba
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x40f4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0xdc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x42a8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004063a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.004063a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.004063a0
mov eax, dword [ebp - 0x42a8]
jmp 0x43b820
mov dword [ebp - 0xe8], 0x1388
push 4
lea eax, [ebp - 0xe8]
push eax
push 6
mov ecx, dword [ebp - 0xac]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xd0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xb0], 0x64
mov edx, dword [ebp - 0x42b8]
movzx eax, byte [edx + 0x1ac]
test eax, eax
jne 0x43b71e
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x42b8]
call sym.Install_style.exe_public:_int___thiscall_CNsDownload::isStop_wchar_t_const__
test eax, eax
je 0x43b466
mov edx, dword [ebp - 0xc8]
cmp edx, dword [ebp - 0xb8]
jne 0x43b442
mov eax, dword [ebp - 0xc4]
cmp eax, dword [ebp - 0xb4]
je 0x43b461
cmp dword [ebp + 0x14], 0
je 0x43b461
sub esp, 8
fldz
fstp qword [esp]
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 3
call dword [ebp + 0x14]
jmp 0x43b71e
mov dword [ebp - 0x428c], 0
lea edx, [ebp - 0x428c]
push edx
push 0x4000
lea eax, [ebp - 0x40e8]
push eax
mov ecx, dword [ebp - 0xac]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x43b531
push 0x45690c
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__
cmp dword [ebp + 0x14], 0
je 0x43b4c8
sub esp, 8
fldz
fstp qword [esp]
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 4
call dword [ebp + 0x14]
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x40f4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0xdc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x42ac], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004063a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.004063a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.004063a0
mov eax, dword [ebp - 0x42ac]
jmp 0x43b820
cmp dword [ebp - 0x428c], 0
jne 0x43b53f
jmp 0x43b71e
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x428c]
push ecx
push 1
lea edx, [ebp - 0x40e8]
push edx
call fcn.0042cd9b
add esp, 0x10
jmp 0x43b5c4
mov dword [ebp - 4], 4
jmp 0x43b605
fldz
fstp dword [ebp - 0x4290]
mov ecx, dword [ebp - 0x428c]
mov dword [ebp - 0x42d0], ecx
mov dword [ebp - 0x42cc], 0
fild qword [ebp - 0x42d0]
fstp dword [ebp - 0x4290]
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x42d8], edx
mov dword [ebp - 0x42d4], 0
fild qword [ebp - 0x42d8]
fdiv qword [0x4593f8]
fdivr dword [ebp - 0x4290]
fstp dword [ebp - 0x4290]
mov eax, dword [ebp - 0xb8]
cmp eax, dword [ebp - 0xc8]
jne 0x43b680
mov ecx, dword [ebp - 0xb4]
cmp ecx, dword [ebp - 0xc4]
jne 0x43b680
jmp 0x43b71e
cmp dword [ebp + 0x14], 0
je 0x43b6cf
fld dword [ebp - 0x4290]
sub esp, 8
fstp qword [esp]
mov edx, dword [ebp - 0xb8]
add edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xb4]
adc eax, dword [ebp - 0xbc]
push eax
push edx
mov ecx, dword [ebp - 0xc8]
add ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xc4]
adc edx, dword [ebp - 0xbc]
push edx
push ecx
mov eax, dword [ebp + 8]
push eax
push 1
call dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
sub ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xb0], ecx
jne 0x43b6f9
mov dword [ebp - 0xb0], 0x64
mov edx, dword [ebp - 0x428c]
xor eax, eax
add edx, dword [ebp - 0xc8]
adc eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], edx
mov dword [ebp - 0xc4], eax
jmp 0x43b3fe
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0042a144
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call fcn.0042ab2a
add esp, 4
mov eax, dword [ebp - 0xb8]
cmp eax, dword [ebp - 0xc8]
jne 0x43b7bc
mov ecx, dword [ebp - 0xb4]
cmp ecx, dword [ebp - 0xc4]
jne 0x43b7bc
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00414010
push eax
call fcn.0042e598
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x43b7bc
sub esp, 8
fldz
fstp qword [esp]
mov ecx, dword [ebp - 0xb8]
add ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xb4]
adc edx, dword [ebp - 0xbc]
push edx
push ecx
mov eax, dword [ebp - 0xc8]
add eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc4]
adc ecx, dword [ebp - 0xbc]
push ecx
push eax
mov edx, dword [ebp + 8]
push edx
push 2
call dword [ebp + 0x14]
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x40f4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0xdc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x42b4], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004063a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.004063a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.004063a0
mov eax, dword [ebp - 0x42b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042047a
mov esp, ebp
pop ebp
ret 0x18