Function at 0x417620
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 0x45ea17
mov eax, dword fs:[0]
push eax
mov eax, 0x1058
call fcn.00448bf0
mov eax, dword [0x47c944]
xor eax, esp
mov dword [esp + 0x1054], eax
push ebp
push esi
push edi
mov eax, dword [0x47c944]
xor eax, esp
push eax
lea eax, [esp + 0x1068]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x264]
lea esi, [ebx + 0x264]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x41767e
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00404160
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.00447b40
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x87a]
push ecx
mov word [esp + 0x87c], ax
call fcn.00447b40
add esi, 0xe
push 0x2f
push esi
call fcn.004460f0
mov edi, eax
add esp, 0x20
test edi, edi
je 0x4176f7
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 0x4176fd
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.004460f0
xor edi, edi
add esp, 8
cmp eax, edi
je 0x41772c
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.00445d12
add esp, 4
movzx ebp, ax
push edi
push edi
push edi
push edi
push 0x46ac44
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0x478], eax
cmp eax, edi
je 0x417bdb
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 + 0x47c], eax
cmp eax, edi
je 0x417bdb
push edi
push SysReAllocStringLen
push edi
push edi
push str.HTTP_1.1
lea ecx, [esp + 0x878]
push ecx
push 0x46ac60
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0x480], eax
cmp eax, edi
je 0x417bdb
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 0x4177a1
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 0x417bdb
mov ecx, dword [ebx + 0x480]
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 0x417bdb
lea edx, [esp + 0x34]
push edx
call fcn.00445d12
add esp, 4
cmp eax, 0x194
je 0x417bdb
mov edx, dword [ebx + 0x480]
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0x20000005
push edx
call esi
test eax, eax
je 0x417bdb
cmp dword [esp + 0x14], 4
jne 0x417bdb
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.00447b40
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.00419da5
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4178ab
push 0x80004005
call fcn.004045a0
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.00419da5
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4178dc
push 0x80004005
call fcn.004045a0
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 0x417912
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x260]
push edx
lea ecx, [esp + 0x18]
call fcn.004042e0
mov esi, dword [esp + 0x10]
push 0x5c
push esi
call fcn.00445593
add esp, 8
cmp eax, edi
jne 0x41794b
or eax, 0xffffffff
jmp 0x41794f
sub eax, esi
sar eax, 1
inc eax
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00403a30
lea ecx, [ebx + 0x260]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x107c], 2
call fcn.00413b10
push str..ini
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x1088], 3
call fcn.00403ab0
add esp, 0x18
mov byte [esp + 0x1070], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x4179f3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4179e1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4179e1
push eax
call fcn.00403da0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4179d8
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 0x4179f3
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004042e0
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 0x417a1b
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 0x417a43
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 0x417a6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x46ac88
lea esi, [ebx + 0x474]
push ebp
push esi
call fcn.004461dc
add esp, 0xc
cmp dword [esi], 0
je 0x417b8c
mov edi, dword [sym.imp.WININET.dll_InternetSetFilePointer]
nop
mov eax, dword [ebx + 0x480]
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 0x417af4
mov ecx, dword [esi]
mov edx, dword [esp + 0x18]
push ecx
push 1
push edx
lea eax, [esp + 0xc70]
push eax
call fcn.00446391
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0x480]
add esp, 0x10
push 0
push 0
push 0
push eax
push ecx
mov dword [esp + 0x30], eax
call edi
test eax, eax
je 0x417af4
cmp dword [esp + 0x18], 0
jne 0x417a90
mov edx, dword [esi]
push edx
call fcn.0044648a
mov eax, dword [esp + 0x20]
add esp, 4
cmp dword [esp + 0x14], eax
ja 0x417b8c
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [esp + 0x46e]
push edx
mov word [esp + 0x470], cx
call fcn.00447b40
add esp, 0xc
push ebp
push 0x200
lea eax, [esp + 0x46c]
push eax
push 0x46adb4
push str.UpdAddr
push str.VerKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x464]
lea ecx, [ebx + 0x268]
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x417b60
sub eax, esi
sar eax, 1
push eax
lea edx, [esp + 0x468]
push edx
call fcn.004042e0
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 0x417bb4
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 0x417bdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x480]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
cmp eax, edi
je 0x417bf0
push eax
call esi
mov eax, dword [ebx + 0x47c]
cmp eax, edi
je 0x417bfd
push eax
call esi
mov eax, dword [ebx + 0x478]
cmp eax, edi
je 0x417c0a
push eax
call esi
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x480], edi
mov dword [ebx + 0x47c], edi
mov dword [ebx + 0x478], 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.00445369
add esp, 0x1064
ret