Function at 0x402bd0
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 0x54b88c
mov eax, dword fs:[0]
push eax
sub esp, 0xaec
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 eax, dword [ebp + 8]
mov dword [ebp - 0xaec], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0xaf4], eax
cmp eax, ebx
jne 0x402c1d
xor eax, eax
jmp 0x4031bc
push 0x206
lea edx, [ebp - 0x2b6]
xor ecx, ecx
push ebx
push edx
mov edi, 0x50
mov dword [ebp - 0xae0], ebx
mov word [ebp - 0x2b8], cx
call fcn.00525e90
push 0x3fe
lea ecx, [ebp - 0xabe]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0xac0], ax
call fcn.00525e90
push 0x2f
push 0x57cfee
call fcn.00523e32
mov esi, eax
add esp, 0x20
cmp esi, ebx
je 0x402c9e
mov edx, esi
sub edx, 0x57cfee
sar edx, 1
inc edx
push edx
push 0x57cfee
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esi, 2
push esi
lea ecx, [ebp - 0xac0]
push ecx
jmp 0x402caa
push 0x57cfee
lea edx, [ebp - 0x2b8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x2b8]
push 0x3a
push eax
call fcn.00523e32
add esp, 8
cmp eax, ebx
je 0x402cd9
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.00523a62
add esp, 4
movzx edi, ax
push ebx
push ebx
push ebx
push ebx
push 0x57d090
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xaf0], eax
cmp eax, ebx
je 0x4031b6
push ebx
push ebx
push 3
push ebx
push ebx
push edi
lea edx, [ebp - 0x2b8]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [ebp - 0xae8], esi
cmp esi, ebx
je 0x4031a9
push ebx
push SysReAllocStringLen
push ebx
push ebx
push str.HTTP_1.1
lea eax, [ebp - 0xac0]
push eax
push 0x57d0ac
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0xac8], edi
cmp edi, ebx
je 0x4031a2
push ebx
push ebx
push 0x4a
push str.Accept_Language:_zh_cn__r_nContent_Type:_application_x_www_form_urlencoded_r_n
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x403195
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
xor eax, eax
lea ecx, [ebp - 0xacc]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0x13
push edi
mov byte [ebp - 0x30], bl
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
mov dword [ebp - 0xacc], 0x20
call esi
test eax, eax
je 0x403195
lea eax, [ebp - 0x30]
push eax
call fcn.00523a62
add esp, 4
cmp eax, 0x194
je 0x403195
push ebx
lea ecx, [ebp - 0xacc]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0x20000005
push edi
call esi
test eax, eax
je 0x403195
cmp dword [ebp - 0xacc], 4
jne 0x403195
mov eax, dword [ebp - 0x30]
push 0x1ff
lea ecx, [ebp - 0x4b7]
push ebx
push ecx
mov dword [ebp - 0xacc], eax
mov byte [ebp - 0x4b8], bl
call fcn.00525e90
xor esi, esi
add esp, 0xc
mov dword [ebp - 0xad8], ebx
mov dword [ebp - 0xaf8], ebx
mov dword [ebp - 0xadc], esi
call fcn.0041d189
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x402e3f
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 - 0xad0], edi
mov dword [ebp - 4], esi
call fcn.0041d189
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x402e6e
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 - 0xac4], eax
push 0x104
lea ecx, [ebp - 0x6c0]
push ecx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x6c0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402ea0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x6c0]
push edx
lea ecx, [ebp - 0xac4]
call fcn.00404630
mov esi, dword [ebp - 0xac4]
push 0x5c
push esi
call fcn.0052321b
add esp, 8
test eax, eax
jne 0x402edc
or eax, 0xffffffff
jmp 0x402ee0
sub eax, esi
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0xae4]
push eax
lea ecx, [ebp - 0xac4]
call fcn.00403be0
push str.ConfigQshaogamer.htm
push eax
lea ecx, [ebp - 0xad4]
push ecx
mov byte [ebp - 4], 2
call fcn.00403c50
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x402f74
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x402f5e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x402f5e
push eax
call fcn.00404040
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x402f4d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov ebx, dword [ebp - 0xaf8]
mov dword [ebp - 0xad0], edi
jmp 0x402f74
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0xad0]
call fcn.00404630
mov edi, dword [ebp - 0xad0]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xad4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f9a
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 - 0xae4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x57d0e0
lea ecx, [ebp - 0xadc]
push edi
push ecx
call fcn.00523f17
add esp, 0xc
cmp dword [ebp - 0xadc], 0
jne 0x402ff9
lea ecx, [ebp - 0xac4]
call fcn.00404140
lea ecx, [ebp - 0xad0]
call fcn.00404140
jmp 0x40318f
mov esi, dword [sym.imp.WININET.dll_InternetSetFilePointer]
nop
mov ecx, dword [ebp - 0xac8]
lea edx, [ebp - 0xad8]
push edx
push 0x200
lea eax, [ebp - 0x4b8]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x403066
mov edx, dword [ebp - 0xadc]
mov eax, dword [ebp - 0xad8]
push edx
push 1
push eax
lea ecx, [ebp - 0x4b8]
push ecx
call fcn.005240b5
add ebx, dword [ebp - 0xad8]
mov edx, dword [ebp - 0xac8]
add esp, 0x10
push 0
push 0
push 0
push ebx
push edx
call esi
test eax, eax
je 0x403066
cmp dword [ebp - 0xad8], 0
jne 0x403000
mov eax, dword [ebp - 0xadc]
push eax
call fcn.0052419c
add esp, 4
cmp dword [ebp - 0xacc], ebx
ja 0x402fde
push 0x57ce08
lea ecx, [ebp - 0xad4]
call fcn.00404770
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0xae]
push edx
mov word [ebp - 0xb0], cx
call fcn.00525e90
mov ecx, dword [ebp - 0xad4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push edi
push 0x40
lea eax, [ebp - 0xb0]
push eax
push 0x57d27c
push ecx
push str.VerKey
call esi
mov edx, dword [ebp - 0xaec]
push edi
push 0x200
add edx, 0xc30
push edx
push 0x57d27c
push str.UpdAddr
push str.VerKey
call esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xaf4]
push 0
push 0
push 0x40
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0xb0]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0xad4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40313c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xac4]
add eax, 0xfffffff0
mov dword [ebp - 0xae0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40316c
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 0x40318f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0xac8]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0xae8]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xaf0]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0xae0]
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 8