Function at 0x407250
Capabilities:
Accept command line arguments
Download url
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537020
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x58aae0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
push eax
push ebx
mov dword [ebp - 0x228], ebx
call fcn.00411cb0
mov dword [ebp - 4], 0
mov dword [ebx], vtable.CSQBKDlg.0
mov dword [ebx + 0x94], vtable.CSQBKDlg.1.0
lea edi, [ebx + 0xc8]
call fcn.00415279
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4072c7
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
lea esi, [ebx + 0xcc]
call fcn.00415279
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4072f9
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.00415279
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407325
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx + 0xd0], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x21a]
mov byte [ebp - 4], 3
push edx
mov word [ebp - 0x21c], cx
call fcn.00512e90
add esp, 0xc
push 0x26
push str.http:__219.129.216.161_updates_shenqu_
mov ecx, edi
mov dword [ebx + 0xc4], 0
call fcn.00404700
push 5
push 0x565328
mov ecx, edi
call fcn.00404600
push 0xc
push str._version.txt
mov ecx, edi
call fcn.00404600
lea ebx, [ebp - 0x220]
call fcn.004079d0
push str.version.txt
push eax
lea eax, [ebp - 0x224]
mov bl, 4
push eax
mov byte [ebp - 4], bl
call fcn.004087e0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00404520
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040f820
mov byte [ebp - 4], 6
mov ebx, dword [ebp - 0x228]
add ebx, 0xd0
push eax
mov ecx, ebx
call fcn.00404520
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407453
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x22c]
push ecx
mov dword [ebp - 0x22c], 0
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x22c], 1
mov dword [ebp - 0x230], eax
jg 0x407680
push ecx
mov dword [ebp - 0x220], esp
mov ecx, esp
push ebx
call fcn.00404490
push ecx
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x224], esp
push 0x565368
call fcn.00403fb0
mov byte [ebp - 4], 3
call fcn.00407b40
mov eax, dword [esi]
push 0
push 0
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0x56537c
call fcn.00403fb0
lea edx, [ebp - 0x224]
push edx
call fcn.004116a0
push eax
lea eax, [ebp - 0x220]
push edi
push eax
mov byte [ebp - 4], 8
call fcn.00404f70
mov eax, dword [eax]
add esp, 0x14
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40751b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407541
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0x565380
push str.update
call ebx
mov eax, dword [esi]
push eax
push 0x104
push 0x592da0
push 0
push str.loginweb
push str.update
call ebx
mov eax, dword [esi]
push eax
push 0x104
push 0x592fa8
push 0
push str.offweb
push str.update
call ebx
mov eax, dword [esi]
push eax
push 0x104
push 0x5931b0
push 0
push str.chaweb
push str.update
call ebx
mov eax, dword [esi]
push eax
push 0x104
push 0x5933b8
push 0
push str.cusweb
push str.update
call ebx
mov eax, dword [esi]
push eax
push 0x104
push 0x5935c0
push 0
push str.bbsweb
push str.update
call ebx
mov esi, dword [esi]
push esi
push 0x104
push 0x5937c8
push 0
push str.noticeweb
push str.update
call ebx
mov esi, dword [ebp - 0x228]
push ecx
mov dword [ebp - 0x220], esp
mov ecx, esp
add esi, 0xd0
push esi
call fcn.00404490
push ecx
mov byte [ebp - 4], 9
lea edx, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x224], esp
push edx
call fcn.00403fb0
mov byte [ebp - 4], 3
call fcn.004078c0
test eax, eax
jne 0x407680
mov edi, dword [ebp - 0x228]
push ecx
mov dword [ebp - 0x220], esp
mov ecx, esp
push esi
mov dword [edi + 0xc0], eax
mov dword [edi + 0xc4], 1
call fcn.00404490
call fcn.00407c80
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x407686
mov edi, dword [ebp - 0x228]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051209f
mov esp, ebp
pop ebp
ret 4