Function at 0x41cb10
Capabilities:
Check http status code
Connect to http server
Create http request
Delete file
Download and write a file
Get http content length
Read .ini file
Read and send data from client to server
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ca67
mov eax, dword fs:[0]
push eax
mov eax, 0x1058
call fcn.004520a0
mov eax, dword [0x491830]
xor eax, esp
mov dword [esp + 0x1054], eax
push ebp
push esi
push edi
mov eax, dword [0x491830]
xor eax, esp
push eax
lea eax, [esp + 0x1068]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x3dc]
lea esi, [ebx + 0x3dc]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x41cb6e
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00406c50
mov esi, dword [esi]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x5e]
push edx
mov ebp, 0x50
mov dword [esp + 0x30], 0
mov word [esp + 0x60], cx
call fcn.00451520
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x87a]
push ecx
mov word [esp + 0x87c], ax
call fcn.00451520
add esi, 0xe
push 0x2f
push esi
call fcn.0044f0b8
mov edi, eax
add esp, 0x20
test edi, edi
je 0x41cbe7
mov edx, edi
sub edx, esi
sar edx, 1
inc edx
push edx
push esi
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
add edi, 2
push edi
lea ecx, [esp + 0x868]
push ecx
jmp 0x41cbed
push esi
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x54]
push 0x3a
push eax
call fcn.0044f0b8
xor edi, edi
add esp, 8
cmp eax, edi
je 0x41cc1c
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.0044ee5d
add esp, 4
movzx ebp, ax
push edi
push edi
push edi
push edi
push 0x478f34
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0x5f0], eax
cmp eax, edi
je 0x41d0cb
push edi
push edi
push 3
push edi
push edi
push ebp
lea edx, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 0x5f4], eax
cmp eax, edi
je 0x41d0cb
push edi
push SysReAllocString
push edi
push edi
push str.HTTP_1.1
lea ecx, [esp + 0x878]
push ecx
push 0x478f50
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0x5f8], eax
cmp eax, edi
je 0x41d0cb
mov ecx, str.Accept_Language:_zh_cn__r_nContent_Type:_application_x_www_form_urlencoded_r_n
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x41cc91
push edi
sub ecx, esi
push edi
sar ecx, 1
push ecx
push str.Accept_Language:_zh_cn__r_nContent_Type:_application_x_www_form_urlencoded_r_n
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x41d0cb
mov ecx, dword [ebx + 0x5f8]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
push edi
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov word [esp + 0x59], ax
mov byte [esp + 0x5b], al
lea eax, [esp + 0x3c]
push eax
push 0x13
push ecx
mov byte [esp + 0x48], 0
mov dword [esp + 0x28], 0x20
call esi
test eax, eax
je 0x41d0cb
lea edx, [esp + 0x34]
push edx
call fcn.0044ee5d
add esp, 4
cmp eax, 0x194
je 0x41d0cb
mov edx, dword [ebx + 0x5f8]
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0x20000005
push edx
call esi
test eax, eax
je 0x41d0cb
cmp dword [esp + 0x14], 4
jne 0x41d0cb
mov eax, dword [esp + 0x34]
push 0x3ff
lea ecx, [esp + 0xc69]
push edi
push ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0xc70], 0
call fcn.00451520
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.00423066
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41cd9b
push 0x80004005
call fcn.00407090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1070], edi
call fcn.00423066
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41cdcc
push 0x80004005
call fcn.00407090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x104
lea ecx, [esp + 0x260]
push ecx
push edi
mov byte [esp + 0x107c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x25c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x41ce02
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x260]
push edx
lea ecx, [esp + 0x18]
call fcn.00406dd0
mov esi, dword [esp + 0x10]
push 0x5c
push esi
call fcn.0044e73b
add esp, 8
cmp eax, edi
jne 0x41ce3b
or eax, 0xffffffff
jmp 0x41ce3f
sub eax, esi
sar eax, 1
inc eax
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00405af0
lea ecx, [ebx + 0x3d8]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x107c], 2
call fcn.00405b70
push str..ini
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x1088], 3
call fcn.00405c30
add esp, 0x18
mov byte [esp + 0x1070], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x41cee3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41ced1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41ced1
push eax
call fcn.00406860
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41cec8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x20], ebp
jmp 0x41cee3
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00406dd0
mov ebp, dword [esp + 0x20]
mov byte [esp + 0x1070], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cf0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1070], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cf33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1070], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cf5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x478f7c
lea esi, [ebx + 0x5ec]
push ebp
push esi
call fcn.0044f8f6
add esp, 0xc
cmp dword [esi], 0
je 0x41d07c
mov edi, dword [sym.imp.WININET.dll_InternetSetFilePointer]
nop
mov eax, dword [ebx + 0x5f8]
lea ecx, [esp + 0x18]
push ecx
push 0x400
lea edx, [esp + 0xc6c]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41cfe4
mov ecx, dword [esi]
mov edx, dword [esp + 0x18]
push ecx
push 1
push edx
lea eax, [esp + 0xc70]
push eax
call fcn.0044faab
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0x5f8]
add esp, 0x10
push 0
push 0
push 0
push eax
push ecx
mov dword [esp + 0x30], eax
call edi
test eax, eax
je 0x41cfe4
cmp dword [esp + 0x18], 0
jne 0x41cf80
mov edx, dword [esi]
push edx
call fcn.0044fba4
mov eax, dword [esp + 0x20]
add esp, 4
cmp dword [esp + 0x14], eax
ja 0x41d07c
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [esp + 0x46e]
push edx
mov word [esp + 0x470], cx
call fcn.00451520
add esp, 0xc
push ebp
push 0x200
lea eax, [esp + 0x46c]
push eax
push 0x47927c
push str.UpdAddr
push str.VerKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x464]
lea ecx, [ebx + 0x3e0]
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41d050
sub eax, esi
sar eax, 1
push eax
lea edx, [esp + 0x468]
push edx
call fcn.00406dd0
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x24], 1
mov byte [esp + 0x1070], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d0a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x1070], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d0cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x5f8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
cmp eax, edi
je 0x41d0e0
push eax
call esi
mov eax, dword [ebx + 0x5f4]
cmp eax, edi
je 0x41d0ed
push eax
call esi
mov eax, dword [ebx + 0x5f0]
cmp eax, edi
je 0x41d0fa
push eax
call esi
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x5f8], edi
mov dword [ebx + 0x5f4], edi
mov dword [ebx + 0x5f0], edi
mov ecx, dword [esp + 0x1068]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1054]
xor ecx, esp
call fcn.0044e3af
add esp, 0x1064
ret