Function at 0x408330
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x437586
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov eax, dword [0x449274]
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.reslist.ini
mov dword [esp + 0x184], eax
call fcn.004048f0
lea eax, [esp + 0x10]
push eax
call fcn.00403960
add esp, 8
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ecx
xor ebx, ebx
push ebx
push str.defaultSort
push str.GeneralInfo
mov dword [esp + 0x19c], ebx
call edi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.update.ini
mov dword [esi + 0xb8], eax
call fcn.004048f0
lea edx, [esp + 0x1c]
push edx
call fcn.00403960
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 1
call fcn.00403640
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x18c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
push eax
push ebx
push str.count
push 0x43a628
call edi
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x10], ecx
jne 0x40844d
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x40]
push str.CPUT:_dnscount0_n
push eax
call dword [ecx]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 8
mov dword [esp + 0x18c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x408556
cmp ecx, 5
jbe 0x40845e
mov dword [esp + 0x10], 5
mov ecx, dword [esp + 0x10]
mov edi, 1
cmp ecx, edi
mov dword [esi + 0xd0], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x14], edi
jb 0x40851b
jmp 0x408480
push edi
lea eax, [esp + 0x64]
push str.server_d
push eax
call fcn.0041d29c
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
push 0xff
lea edx, [esp + 0x28]
push edx
push 0x43a604
lea eax, [esp + 0x70]
push eax
push 0x43a628
call ebx
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4084c0
sub eax, edx
mov dword [esp + 0x1c], eax
je 0x408508
mov ecx, dword [esi + 0xd0]
lea eax, [esp + 0x20]
lea ecx, [esi + ecx*4 + 0xbc]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4084e3
sub eax, edi
push eax
lea edx, [esp + 0x24]
push edx
call fcn.004034b0
mov eax, dword [esi + 0xd0]
mov edi, dword [esp + 0x14]
inc eax
mov dword [esi + 0xd0], eax
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
mov dword [esp + 0x14], edi
jbe 0x408480
mov ecx, eax
mov eax, dword [esi + 0xd0]
test eax, eax
jne 0x408567
mov edx, dword [esi + 0x40]
push ecx
lea eax, [esi + 0x40]
push 0x43a5e4
push eax
call dword [edx]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x18c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408560
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x4086c8
mov eax, dword [esp + 0xc]
push eax
push 0xff
lea ecx, [esp + 0x28]
push ecx
push str.www.51v.cn
push str.reperr
push 0x43a628
call ebx
lea eax, [esp + 0x20]
lea ecx, [esi + 0x158]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408594
sub eax, edi
push eax
lea edx, [esp + 0x24]
push edx
call fcn.004034b0
xor eax, eax
mov byte [esp + 0x78], 0
mov ecx, 0x3f
lea edi, [esp + 0x79]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
push eax
push pe_nt_image_headers32
lea ecx, [esp + 0x80]
push ecx
push 0x43a604
push str.source
push str.DEBUG
call ebx
test eax, eax
jbe 0x408613
push ecx
lea edx, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004048f0
lea ecx, [esi + 0x74]
call fcn.0040fec0
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x78]
push edx
lea eax, [esi + 0x40]
push str.CPUT:_
push eax
call dword [ecx]
add esp, 0xc
mov eax, dword [esp + 0xc]
push eax
push 0x40
lea edi, [esi + 0xd4]
push edi
push 0x43a604
push str.user
push str.DEBUG
call ebx
test eax, eax
jbe 0x408648
mov ecx, dword [esi + 0x40]
push edi
lea eax, [esi + 0x40]
push 0x43a590
push eax
call dword [ecx]
add esp, 0xc
mov edx, dword [esp + 0xc]
push edx
push 0x40
lea edi, [esi + 0x114]
push edi
push 0x43a604
push 0x43a58c
push str.DEBUG
call ebx
test eax, eax
jbe 0x40867d
mov ecx, dword [esi + 0x40]
push edi
lea eax, [esi + 0x40]
push 0x43a578
push eax
call dword [ecx]
add esp, 0xc
mov edx, dword [esp + 0xc]
push edx
push 0
push str.ignorenewver
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x154], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x17c]
call fcn.0041c871
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret