Function at 0x419d30
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 ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b5b7
mov eax, dword fs:[0]
push eax
mov eax, 0x105c
call fcn.005277d0
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x4b0]
cmp dword [eax - 4], 1
mov dword [ebp - 0x1064], ebx
jle 0x419d85
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebx + 0x4b0]
call fcn.00404480
mov esi, dword [ebx + 0x4b0]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x236]
push edx
mov dword [ebp - 0x104c], 0x50
mov dword [ebp - 0x1058], 0
mov word [ebp - 0x238], cx
call fcn.00525e90
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x103e]
push ecx
mov word [ebp - 0x1040], ax
call fcn.00525e90
add esi, 0xe
push 0x2f
push esi
call fcn.00523e32
mov edi, eax
add esp, 0x20
test edi, edi
je 0x419e0c
mov edx, edi
sub edx, esi
sar edx, 1
inc edx
push edx
push esi
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
add edi, 2
push edi
lea ecx, [ebp - 0x1040]
push ecx
jmp 0x419e14
push esi
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x238]
push 0x3a
push eax
call fcn.00523e32
xor edi, edi
add esp, 8
cmp eax, edi
je 0x419e47
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.00523a62
add esp, 4
movzx esi, ax
jmp 0x419e4d
mov esi, dword [ebp - 0x104c]
push edi
push edi
push edi
push edi
push 0x57d090
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0x6c4], eax
cmp eax, edi
je 0x41a396
push edi
push edi
push 3
push edi
push edi
push esi
lea edx, [ebp - 0x238]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 0x6c8], eax
cmp eax, edi
je 0x41a396
push edi
push SysReAllocStringLen
push edi
push edi
push str.HTTP_1.1
lea ecx, [ebp - 0x1040]
push ecx
push 0x57d0ac
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0x6cc], eax
cmp eax, edi
je 0x41a396
push edi
push edi
push 0x4a
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 0x41a396
mov ecx, dword [ebx + 0x6cc]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
push edi
lea edx, [ebp - 0x1048]
push edx
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x30]
push eax
push 0x13
push ecx
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x1048], 0x20
call esi
test eax, eax
je 0x41a396
lea edx, [ebp - 0x30]
push edx
call fcn.00523a62
add esp, 4
cmp eax, 0x194
je 0x41a396
mov edx, dword [ebx + 0x6cc]
push edi
lea eax, [ebp - 0x1048]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0x20000005
push edx
call esi
test eax, eax
je 0x41a396
cmp dword [ebp - 0x1048], 4
jne 0x41a396
mov eax, dword [ebp - 0x30]
push 0x3ff
lea ecx, [ebp - 0xc3f]
push edi
push ecx
mov dword [ebp - 0x1048], eax
mov byte [ebp - 0xc40], 0
call fcn.00525e90
add esp, 0xc
mov dword [ebp - 0x1054], edi
mov dword [ebp - 0x104c], edi
call fcn.0041d189
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x419fb5
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1050], edi
mov dword [ebp - 4], 0
call fcn.0041d189
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x419fe8
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1044], eax
push 0x104
lea ecx, [ebp - 0x440]
push ecx
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x440]
lea edx, [eax + 2]
jmp 0x41a020
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a020
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x440]
push edx
lea ecx, [ebp - 0x1044]
call fcn.00404630
mov esi, dword [ebp - 0x1044]
push 0x5c
push esi
call fcn.0052321b
add esp, 8
test eax, eax
jne 0x41a05c
or eax, 0xffffffff
jmp 0x41a060
sub eax, esi
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x1068]
push eax
lea ecx, [ebp - 0x1044]
call fcn.00403be0
lea ecx, [ebx + 0x4ac]
push ecx
push eax
lea edx, [ebp - 0x1060]
push edx
mov byte [ebp - 4], 2
call fcn.00415ad0
push str..ini
push eax
lea eax, [ebp - 0x105c]
push eax
mov byte [ebp - 4], 3
call fcn.00403c50
add esp, 0x18
mov byte [ebp - 4], 4
mov eax, dword [eax]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x41a164
cmp dword [edi + 0xc], 0
jl 0x41a154
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x41a154
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x41a0ee
cmp eax, dword [esi]
jne 0x41a0ee
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41a12a
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x41a107
call fcn.00404510
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00523143
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a143
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [ebp - 0x1050], ebx
mov ebx, dword [ebp - 0x1064]
jmp 0x41a164
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x1050]
call fcn.00404630
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x105c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a18a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1060]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a1b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1068]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a1d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x1050]
push 0x57d0e0
lea esi, [ebx + 0x6c0]
push edi
push esi
call fcn.00523f17
add esp, 0xc
cmp dword [esi], 0
je 0x41a34d
lea ebx, [ebx]
mov eax, dword [ebx + 0x6cc]
lea ecx, [ebp - 0x1054]
push ecx
push 0x400
lea edx, [ebp - 0xc40]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41a272
mov ecx, dword [esi]
mov edx, dword [ebp - 0x1054]
push ecx
push 1
push edx
lea eax, [ebp - 0xc40]
push eax
call fcn.005240b5
mov edi, dword [ebp - 0x104c]
add edi, dword [ebp - 0x1054]
mov ecx, dword [ebx + 0x6cc]
add esp, 0x10
push 0
push 0
push 0
push edi
push ecx
mov dword [ebp - 0x104c], edi
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
test eax, eax
je 0x41a278
cmp dword [ebp - 0x1054], 0
jne 0x41a200
mov edi, dword [ebp - 0x104c]
mov edx, dword [esi]
push edx
call fcn.0052419c
add esp, 4
cmp dword [ebp - 0x1048], edi
jbe 0x41a2c6
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1044]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a2b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1050]
add eax, 0xfffffff0
jmp 0x41a37d
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x83e]
push edx
mov word [ebp - 0x840], cx
call fcn.00525e90
mov edi, dword [ebp - 0x1050]
add esp, 0xc
push edi
push 0x200
lea eax, [ebp - 0x840]
push eax
push 0x57d27c
push str.UpdAddr
push str.VerKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x840]
lea ecx, [ebx + 0x4b4]
lea esi, [eax + 2]
jmp 0x41a320
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41a320
sub eax, esi
sar eax, 1
push eax
lea edx, [ebp - 0x840]
push edx
call fcn.00404630
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x1058], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1044]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a373
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x6cc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
cmp eax, edi
je 0x41a3ab
push eax
call esi
mov eax, dword [ebx + 0x6c8]
cmp eax, edi
je 0x41a3b8
push eax
call esi
mov eax, dword [ebx + 0x6c4]
cmp eax, edi
je 0x41a3c5
push eax
call esi
mov eax, dword [ebp - 0x1058]
mov dword [ebx + 0x6cc], edi
mov dword [ebx + 0x6c8], edi
mov dword [ebx + 0x6c4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523022
mov esp, ebp
pop ebp
ret