Function at 0x405bd0
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46b7db
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
mov dword fs:[0], esp
call fcn.004584c0
mov eax, dword [0x480630]
xor eax, esp
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1038], eax
mov dword [esp + 0x38], ecx
call fcn.004154a0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 0x18]
call fcn.00405970
mov edi, dword [esp + 0x14]
mov ecx, dword [edi - 0xc]
test ecx, ecx
lea eax, [edi - 0xc]
mov dword [esp + 0x1044], 0
jl 0x405c42
push eax
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x405c55
mov eax, dword [0x4800d8]
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], eax
call fcn.00404d30
lea ecx, [esp + 0x34]
mov byte [esp + 0x1044], 1
call fcn.00404410
mov esi, dword [esp + 0x34]
push esi
call dword [sym.imp.USER32.dll_CharLowerA]
mov eax, dword [esi - 8]
test eax, eax
jl 0x405d2e
push str.setup.exe
push esi
call fcn.00457e8d
add esp, 8
test eax, eax
je 0x405d2e
sub eax, esi
mov ecx, eax
cmp ecx, 0xffffffff
je 0x405d2e
mov eax, dword [edi - 8]
sub eax, ecx
sub eax, 9
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004059f0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1048], 2
call fcn.00404cd0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
mov byte [esp + 0x1044], 1
je 0x405cff
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405cff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
push 0x22
lea ecx, [esp + 0x18]
call fcn.00404b50
push 0x20
lea ecx, [esp + 0x18]
call fcn.00404b50
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x405d2e
push 0x470bc0
lea ecx, [esp + 0x18]
call fcn.00404d30
push 0x2b
push 0x20
lea ecx, [esp + 0x1c]
call fcn.00404bb0
lea ecx, [esp + 0x40]
call fcn.00453c20
mov ecx, dword [ebx + 0x44]
mov eax, dword [ecx - 8]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [esp + 0x1044], 3
je 0x406192
mov edx, dword [0x4800d8]
mov dword [esp + 0x1c], edx
push 0
lea ecx, [esp + 0x1f0]
mov byte [esp + 0x1048], 4
call fcn.00446910
mov edi, 0x104
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x1048], 5
call fcn.004042d0
test eax, eax
je 0x405da9
mov eax, dword [esp + 0x1c]
mov dword [eax - 8], edi
mov byte [eax + 0x104], 0
push edi
push eax
lea ecx, [esp + 0x1f4]
call fcn.00446ef0
lea ecx, [esp + 0x1c]
call fcn.00404410
mov esi, dword [esp + 0x1c]
push esi
call ebp
mov dword [esi - 8], eax
push 0x5c
lea ecx, [esp + 0x20]
mov byte [eax + esi], 0
call fcn.00404b00
push str.RisingRSD
push str.RisingRSD
call ebp
push eax
lea ecx, [esp + 0x24]
call fcn.00403ab0
mov eax, dword [0x4800d8]
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x44]
mov eax, dword [esp + 0x1c]
push ecx
mov edx, ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._sData_s_s.ini
push ecx
mov byte [esp + 0x1058], 6
call fcn.00405ab0
mov edx, dword [0x4800d8]
add esp, 0x14
mov dword [esp + 0x20], edx
mov byte [esp + 0x1044], 7
call fcn.004178f0
mov ebx, eax
mov dword [esp + 0x28], ebx
call fcn.004178f0
push edi
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.004042d0
test eax, eax
je 0x405e5e
mov eax, dword [esp + 0x20]
mov dword [eax - 8], edi
mov byte [eax + 0x104], 0
mov edi, dword [esp + 0x10]
mov edx, dword [esi]
push edi
push 0x104
push eax
push 0x4708d8
push str.INSTALLPATH
push str.SETUP
mov ecx, esi
call dword [edx + 0x90]
lea ecx, [esp + 0x20]
call fcn.00404410
mov esi, dword [esp + 0x20]
push esi
call ebp
mov dword [esi - 8], eax
push 0x5c
lea ecx, [esp + 0x24]
mov byte [eax + esi], 0
call fcn.00404b00
push str.NetConfig.ini
push str.NetConfig.ini
call ebp
push eax
lea ecx, [esp + 0x28]
call fcn.00403ab0
mov esi, dword [esp + 0x20]
push esi
push 0
push str.NetTypeNo
push str.NETTYPE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
je 0x4060fc
dec eax
je 0x405ef2
dec eax
je 0x4060fc
mov dword [esp + 0x98], 0
jmp 0x406107
mov eax, dword [0x4800d8]
mov dword [esp + 0x98], 3
mov dword [esp + 0x2c], eax
push 0x104
lea ecx, [esp + 0x30]
mov byte [esp + 0x1048], 8
call fcn.004042d0
test eax, eax
je 0x405f32
mov eax, dword [esp + 0x2c]
mov dword [eax - 8], 0x104
mov byte [eax + 0x104], 0
push esi
push 0x104
push eax
push 0x4708d8
push 0x470b64
push str.PROXY
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x2c]
call fcn.00404410
mov edi, dword [esp + 0x2c]
push edi
call ebp
push esi
push 0x50
push str.Port
mov dword [edi - 8], eax
push str.PROXY
mov byte [eax + edi], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 0
push str.Authentication
push str.PROXY
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x4060d6
mov ecx, dword [0x4800d8]
mov dword [esp + 0x18], ecx
mov edi, dword [ebx]
push esi
push 0x104
push 0x104
lea ecx, [esp + 0x24]
mov byte [esp + 0x1050], 9
call fcn.00404360
push eax
push 0x4708d8
push str.UserName
push str.PROXY
mov ecx, ebx
call dword [edi + 0x90]
lea ecx, [esp + 0x18]
call fcn.00404410
mov edi, dword [esp + 0x18]
push edi
call ebp
mov dword [edi - 8], eax
mov byte [eax + edi], 0
mov edx, dword [0x4800d8]
mov dword [esp + 0x24], edx
mov ebx, dword [ebx]
push esi
push 0x104
push 0x104
lea ecx, [esp + 0x30]
mov byte [esp + 0x1050], 0xa
call fcn.00404360
mov ecx, dword [esp + 0x30]
push eax
push 0x4708d8
push str.Password
push str.PROXY
call dword [ebx + 0x90]
lea ecx, [esp + 0x24]
call fcn.00404410
mov ebx, dword [esp + 0x24]
push ebx
call ebp
mov dword [ebx - 8], eax
mov byte [eax + ebx], 0
mov eax, dword [0x4800d8]
mov dword [esp + 0x28], eax
push ebx
push 0x400
push 0x400
lea ecx, [esp + 0x34]
mov byte [esp + 0x1050], 0xb
call fcn.004042d0
push eax
call fcn.00449ee0
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.00404410
mov ebx, dword [esp + 0x28]
push ebx
call ebp
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
push ebx
push edi
push ecx
mov dword [ebx - 8], eax
push 1
mov byte [eax + ebx], 0
mov eax, dword [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x58]
call fcn.00453ac0
lea ecx, [esp + 0x28]
call fcn.004309a0
lea ecx, [esp + 0x24]
call fcn.004309a0
lea ecx, [esp + 0x18]
call fcn.004309a0
lea ecx, [esp + 0x2c]
call fcn.004309a0
mov edi, dword [esp + 0x10]
jmp 0x406107
mov ecx, dword [esp + 0x30]
push 0
push 0
push 0
push 1
push ecx
push edi
lea ecx, [esp + 0x58]
call fcn.00453ac0
lea ecx, [esp + 0x2c]
call fcn.004309a0
mov edi, dword [esp + 0x10]
jmp 0x406107
mov dword [esp + 0x98], 1
mov eax, dword [0x4800dc]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x40612a
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40612a
push esi
call fcn.00457c3f
add esp, 4
mov ecx, dword [0x4800dc]
lea eax, [edi - 0xc]
cmp eax, ecx
je 0x40614e
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40614e
push esi
call fcn.00457c3f
add esp, 4
lea ecx, [esp + 0x1ec]
mov byte [esp + 0x1044], 4
call fcn.004462d0
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x1044], 3
je 0x406192
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x406192
push esi
call fcn.00457c3f
add esp, 4
push 0x470bc0
lea ecx, [esp + 0x1c]
call fcn.00405970
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x1048], 0xc
mov dword [esp + 0xc4], 0x47071c
call fcn.00403860
mov edi, eax
mov ecx, 4
mov esi, 0x475a94
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x406212
push 0x104
push 0x105
lea ecx, [esp + 0x20]
call fcn.004042d0
push eax
lea ecx, [esp + 0xb8]
call fcn.004028f0
lea ecx, [esp + 0x18]
call fcn.00404410
mov ebx, dword [esp + 0x18]
push ebx
call ebp
mov dword [ebx - 8], eax
mov byte [eax + ebx], 0
jmp 0x406216
mov ebx, dword [esp + 0x18]
mov ecx, dword [0x4800d8]
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 4]
push 0x470bc0
push edx
mov edx, dword [eax]
push ecx
push edx
push ebx
push str.RSDUninstall
lea eax, [esp + 0x48]
push str.Key_sv1_sv2_sv3_sv4_sv5_s
push eax
mov byte [esp + 0x1064], 0xd
call fcn.00405ab0
mov edi, dword [esp + 0x50]
mov eax, dword [edi - 8]
lea ecx, [eax + 9]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4800d8]
add esp, 0x20
lea eax, [ecx*4 + 1]
mov dword [esp + 0x10], edx
push edi
push eax
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1050], 0xe
call fcn.004042d0
push eax
call fcn.00449d00
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00404410
mov esi, dword [esp + 0x10]
push esi
call ebp
mov dword [esi - 8], eax
mov byte [eax + esi], 0
mov eax, dword [0x4800d8]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0xc4]
call fcn.00402db0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1044], 0x10
call fcn.00404910
push esi
lea ecx, [esp + 0x28]
push str.http:__center.rising.com.cn_LogCenter.asp_info_s
push ecx
call fcn.00405ab0
mov ebp, dword [esp + 0x30]
add esp, 0xc
push 0
push 1
push 0
push ebp
lea ecx, [esp + 0x50]
call fcn.00454270
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1cc]
test eax, eax
je 0x406334
mov eax, dword [esp + 0x1d0]
test eax, eax
je 0x406334
mov eax, dword [esp + 0x1e8]
test eax, eax
je 0x406334
call eax
mov dword [esp + 0x1d0], 0
cmp dword [esp + 0x38], reloc.OLEAUT32.dll_SysReAllocString
jne 0x406345
push str.rsd_r_info_ok
jmp 0x40634a
push str.rsd_r_info_fail
push 0x40
call fcn.004047f0
add esp, 8
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1044], 0xf
call fcn.00402ef0
mov eax, dword [0x4800dc]
lea edx, [ebp - 0xc]
cmp edx, eax
je 0x40638b
add ebp, 0xfffffff4
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40638b
push ebp
call fcn.00457c3f
add esp, 4
mov ecx, dword [0x4800dc]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x4063b1
add esi, 0xfffffff4
push esi
call ebp
test eax, eax
jg 0x4063b1
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800dc]
lea ecx, [edi - 0xc]
cmp ecx, eax
je 0x4063d0
add edi, 0xfffffff4
push edi
call ebp
test eax, eax
jg 0x4063d0
push edi
call fcn.00457c3f
add esp, 4
mov eax, dword [0x4800dc]
lea edx, [ebx - 0xc]
cmp edx, eax
je 0x4063ef
add ebx, 0xfffffff4
push ebx
call ebp
test eax, eax
jg 0x4063ef
push ebx
call fcn.00457c3f
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x1044], 1
call fcn.004533b0
mov esi, dword [esp + 0x34]
mov ecx, dword [0x4800dc]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x406424
add esi, 0xfffffff4
push esi
call ebp
test eax, eax
jg 0x406424
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x406448
lea esi, [eax - 0xc]
push esi
call ebp
test eax, eax
jg 0x406448
push esi
call fcn.00457c3f
add esp, 4
mov ecx, dword [esp + 0x103c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x102c]
pop ebx
xor ecx, esp
call fcn.004570de
add esp, 0x1038
ret