Function at 0x402a10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x412d90
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41913c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ecx, dword [ebp]
mov esi, dword [edi + 0x48]
add edi, 0x48
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x402a94
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x402a89
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x402a89
call fcn.00404800
mov dword [esp + 0x2c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x402a7e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x2c]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x402a94
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00404760
lea edx, [esp + 0x2c]
push ebp
push edx
mov ebx, 0x415e50
call fcn.00404440
add esp, 8
mov dword [esp + 0x20], 0
mov esi, dword [eax]
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x24]
add edi, 0x24
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x20
or eax, ecx
jge 0x402adc
mov ecx, 0x20
mov eax, edi
call fcn.004021d0
mov eax, dword [edi]
push esi
push 0x20
push eax
push 0x415c58
push str.AgName
push 0x415e74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x20], 0xffffffff
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 0x402b1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x402b3a
push ecx
push eax
call fcn.00407c62
add esp, 8
test eax, eax
jl 0x40301d
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x40301d
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [esp + 0x2c]
push ebp
push eax
mov ebx, 0x415e50
call fcn.00404440
add esp, 8
mov dword [esp + 0x20], 1
mov ebx, dword [eax]
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x20]
add esi, 0x20
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x20
or eax, ecx
jge 0x402b98
mov ecx, 0x20
mov eax, esi
call fcn.004021d0
mov eax, dword [esi]
push ebx
push 0x20
push eax
push 0x415c58
push str.UserName
push 0x415e74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x20], 0xffffffff
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 0x402bdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x402bf6
push ecx
push eax
call fcn.00407c62
add esp, 8
test eax, eax
jl 0x40301d
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40301d
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esi]
mov ebx, 1
cmp dword [eax - 0xc], ebx
jl 0x403027
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jl 0x403027
push edi
mov ecx, str.58wangwei
call fcn.00404610
add esp, 4
test al, al
je 0x402ca3
push edi
mov ecx, str.xunjead
call fcn.00404610
add esp, 4
test al, al
je 0x402ca3
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jle 0x402c68
push 0x5f
push eax
call fcn.00407c3c
add esp, 8
test eax, eax
je 0x402c68
sub eax, dword [esi]
sar eax, 1
jns 0x402ca3
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
mov dword [edx + 0x10], ebx
push ebp
push eax
mov ebx, 0x415e50
call fcn.00404440
mov eax, dword [eax]
add esp, 8
push eax
push 0x415ebc
push 0x415ec0
push 0x415e74
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esp + 0x2c]
call fcn.004019a0
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov ebx, 0x415e50
call fcn.00404440
add esp, 8
mov dword [esp + 0x20], 2
mov ebx, dword [eax]
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x30]
lea esi, [edi + 0x30]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0xa
or eax, ecx
jge 0x402ceb
mov ecx, 0xa
mov eax, esi
call fcn.004021d0
mov eax, dword [esi]
push ebx
push 0xa
push eax
push 0x415ec8
push 0x415ecc
push 0x415e74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402d2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x402d49
push ecx
push eax
call fcn.00407c62
add esp, 8
test eax, eax
jl 0x40301d
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40301d
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [esp + 0x28]
push ebp
push eax
mov ebx, 0x415e50
call fcn.00404440
add esp, 8
mov dword [esp + 0x20], 3
mov ebx, dword [eax]
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x28]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x20
or eax, ecx
jge 0x402da3
mov ecx, 0x20
mov eax, esi
call fcn.004021d0
mov eax, dword [esi]
push ebx
push 0x20
push eax
push 0x415ec8
push 0x415ed0
push 0x415e74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x20], 0xffffffff
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 0x402de6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x402e01
push ecx
push eax
call fcn.00407c62
add esp, 8
test eax, eax
jl 0x40301d
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40301d
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [esp + 0x28]
push ebp
push eax
mov ebx, 0x415e50
call fcn.00404440
add esp, 8
mov dword [esp + 0x20], 4
mov ebx, dword [eax]
mov eax, dword [edi + 0x34]
lea esi, [edi + 0x34]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x20
or eax, ecx
jge 0x402e5b
mov ecx, 0x20
mov eax, esi
call fcn.004021d0
mov eax, dword [esi]
push ebx
push 0x20
push eax
push 0x415ec8
push str.IPAddr
push 0x415e74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x20], 0xffffffff
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 0x402e9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x402eb9
push ecx
push eax
call fcn.00407c62
add esp, 8
test eax, eax
jl 0x40301d
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40301d
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
lea eax, [esp + 0x28]
push ebp
push eax
mov ebx, 0x415e50
call fcn.00404440
add esp, 8
mov dword [esp + 0x20], 5
mov ebx, dword [eax]
mov eax, dword [edi + 0x38]
lea esi, [edi + 0x38]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x402f15
mov ecx, 0x104
mov eax, esi
call fcn.004021d0
mov eax, dword [esi]
push ebx
push 0x104
push eax
push str.ProjectEx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [esp + 0x20], 0xffffffff
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 0x402f51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
push ebp
push ecx
mov ebx, 0x415e50
call fcn.00404440
mov eax, dword [eax]
add esp, 8
push eax
push 0
push 0x415f04
push 0x415e74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402f9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ebp
push ecx
mov ebx, 0x415e50
call fcn.00404440
mov eax, dword [eax]
add esp, 8
push eax
push 0
push 0x415f0c
push 0x415e74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402fe7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x402ffe
push ecx
push eax
call fcn.00407c62
add esp, 8
test eax, eax
jl 0x40301d
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40301d
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
push esi
mov word [ecx + eax*2], dx
call fcn.004043a0
mov eax, 1
jmp 0x403029
push 0x80070057
call fcn.004023b0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8