Function at 0x409af0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59eca7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x8c8
mov eax, dword [0x629a40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00578b50
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x208
push 0
push eax
call fcn.00578b50
add esp, 0xc
mov dword [ebp - 0x89c], 7
xor eax, eax
mov dword [ebp - 0x8a0], 0
lea ecx, [ebp - 0x8b0]
mov word [ebp - 0x8b0], ax
push eax
push 0x61b488
call fcn.00404030
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x61b488
lea ecx, [ebp - 0x898]
mov dword [ebp - 0x884], 7
mov dword [ebp - 0x888], 0
mov word [ebp - 0x898], ax
call fcn.00404030
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x61b488
lea ecx, [ebp - 0x880]
mov dword [ebp - 0x86c], 7
mov dword [ebp - 0x870], 0
mov word [ebp - 0x880], ax
call fcn.00404030
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x61b488
lea ecx, [ebp - 0x868]
mov dword [ebp - 0x854], 7
mov dword [ebp - 0x858], 0
mov word [ebp - 0x868], ax
call fcn.00404030
push ecx
push 0x2b
lea edx, [ebp - 0x428]
mov byte [ebp - 4], 3
call fcn.004259c0
lea edi, [ebp - 0x428]
add esp, 8
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x409c44
mov eax, dword [0x61b718]
lea edx, [ebp - 0x428]
mov dword [edi], eax
add edx, 0xfffffffe
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x409c60
mov ecx, dword [0x61b71c]
lea edi, [ebp - 0x428]
mov dword [edx], ecx
add edi, 0xfffffffe
mov ecx, dword [str.iNengPY]
mov dword [edx + 4], ecx
mov ecx, dword [0x61b724]
mov dword [edx + 8], ecx
mov ecx, dword [0x61b728]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x61b72c]
mov dword [edx + 0x10], ecx
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x409ca1
lea ecx, [ebp - 0x428]
mov dword [edi], eax
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x409cc0
mov eax, dword [0x61b71c]
mov dword [ecx], eax
mov eax, dword [str.iNengPY]
mov dword [ecx + 4], eax
mov eax, dword [0x61b724]
mov dword [ecx + 8], eax
mov eax, dword [0x61b728]
mov dword [ecx + 0xc], eax
mov eax, dword [0x61b72c]
mov dword [ecx + 0x10], eax
lea ecx, [ebp - 0x428]
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x409d00
mov eax, dword [str..ini]
mov dword [ecx], eax
mov eax, dword [0x61b734]
mov dword [ecx + 4], eax
mov ax, word [0x61b738]
mov word [ecx + 8], ax
lea eax, [ebp - 0x428]
push eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x61b488
push str.CfgRootPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d56
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x409e4d
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
jle 0x409e4d
lea eax, [ebp - 0x8d4]
mov dword [ebp - 0x8b4], 0
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x220]
push 0
push eax
movups xmmword [ebp - 0x8d4], xmm0
movups xmmword [ebp - 0x8c4], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
setne al
test al, al
je 0x409e4d
cmp word [ebp - 0x220], 0
jne 0x409dd0
xor ecx, ecx
jmp 0x409def
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409de0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x8b0]
call fcn.00404030
cmp word [ebp - 0x220], 0
jne 0x409e10
xor ecx, ecx
jmp 0x409e2f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409e20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x2c]
call fcn.00404030
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x40a2a4
push 0x208
lea eax, [ebp - 0x838]
push 0
push eax
call fcn.00578b50
lea ecx, [esi + 0x5c]
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x409e6e
mov ecx, dword [ecx]
lea edx, [ebp - 0x838]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x409e74
push 0x208
lea eax, [ebp - 0x630]
push 0
push eax
call fcn.00578b50
add esp, 0xc
lea eax, [ebp - 0x838]
push str.ZhiNengPYInfo.ini
push eax
lea eax, [ebp - 0x630]
push str._s_s
push eax
call fcn.00409380
add esp, 0x10
lea eax, [ebp - 0x630]
push eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x61b488
push str.CfgRootPath
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409ef0
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x409fdd
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
jle 0x409fdd
lea eax, [ebp - 0x8d4]
mov dword [ebp - 0x8b4], 0
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x220]
push 0
push eax
movups xmmword [ebp - 0x8d4], xmm0
movups xmmword [ebp - 0x8c4], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
setne al
test al, al
je 0x409fdd
cmp word [ebp - 0x220], 0
jne 0x409f64
xor ecx, ecx
jmp 0x409f7f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409f70
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x898]
call fcn.00404030
cmp word [ebp - 0x220], 0
jne 0x409fa0
xor ecx, ecx
jmp 0x409fbf
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409fb0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x2c]
call fcn.00404030
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x40a2a4
cmp dword [esi + 0x88], 8
lea eax, [esi + 0x74]
jb 0x409feb
mov eax, dword [eax]
push str.ZhiNengPYInfo.ini
push eax
lea eax, [ebp - 0x630]
push str._s_s
push eax
call fcn.00409380
add esp, 0x10
lea eax, [ebp - 0x630]
push eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x61b488
push str.CfgRootPath
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a036
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x40a11d
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
jle 0x40a11d
lea eax, [ebp - 0x8d4]
mov dword [ebp - 0x8b4], 0
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x220]
push 0
push eax
movups xmmword [ebp - 0x8d4], xmm0
movups xmmword [ebp - 0x8c4], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
setne al
test al, al
je 0x40a11d
cmp word [ebp - 0x220], 0
jne 0x40a0aa
xor ecx, ecx
jmp 0x40a0c2
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a0b3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x880]
call fcn.00404030
cmp word [ebp - 0x220], 0
jne 0x40a0e3
xor ecx, ecx
jmp 0x40a0ff
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a0f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [esi + 0x2c]
call fcn.00404030
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x40a2a4
push 0x61b488
push str.CfgRootPath
push str.AppInfo
lea eax, [ebp - 0x850]
push eax
call fcn.0040c3b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x850]
mov edx, dword [ebp - 0x83c]
cmp edx, 8
mov edi, dword [ebp - 0x850]
cmovae ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0x8d8], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a160
sub ecx, dword [ebp - 0x8d8]
sar ecx, 1
test ecx, ecx
jle 0x40a214
cmp edx, 8
jb 0x40a18a
test edi, edi
je 0x40a214
jmp 0x40a190
lea edi, [ebp - 0x850]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40a20e
lea eax, [ebp - 0x8d4]
mov dword [ebp - 0x8b4], 0
push eax
xorps xmm0, xmm0
push 0
push edi
movups xmmword [ebp - 0x8d4], xmm0
movups xmmword [ebp - 0x8c4], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
setne al
test al, al
je 0x40a20e
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x850]
push eax
lea ecx, [ebp - 0x868]
call fcn.00404130
lea ecx, [esi + 0x2c]
lea eax, [ebp - 0x850]
cmp ecx, eax
je 0x40a1fc
push 0xffffffffffffffff
push 0
push eax
call fcn.00404130
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
jne 0x40a20e
mov edi, dword [ebp - 0x850]
jmp 0x40a26e
mov edi, dword [ebp - 0x850]
cmp byte [esi + 8], 0
je 0x40a26e
cmp byte [esi + 6], 0
je 0x40a26e
lea eax, [ebp - 0x898]
push eax
lea ecx, [ebp - 0x8b0]
call fcn.00404db0
test eax, eax
je 0x40a23a
mov byte [esi + 9], 1
lea eax, [ebp - 0x880]
push eax
lea ecx, [ebp - 0x8b0]
call fcn.00404db0
test eax, eax
je 0x40a254
mov byte [esi + 9], 1
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x8b0]
call fcn.00404db0
test eax, eax
je 0x40a26e
mov byte [esi + 9], 1
mov eax, dword [ebp - 0x83c]
cmp eax, 8
jb 0x40a287
inc eax
lea ecx, [ebp - 0x850]
push eax
push edi
call fcn.004043b0
xor eax, eax
mov dword [ebp - 0x83c], 7
mov dword [ebp - 0x840], 0
mov word [ebp - 0x850], ax
mov eax, dword [ebp - 0x854]
cmp eax, 8
jb 0x40a2c2
inc eax
lea ecx, [ebp - 0x868]
push eax
push dword [ebp - 0x868]
call fcn.004043b0
xor eax, eax
mov dword [ebp - 0x854], 7
mov word [ebp - 0x868], ax
mov eax, dword [ebp - 0x86c]
mov dword [ebp - 0x858], 0
cmp eax, 8
jb 0x40a2fd
inc eax
lea ecx, [ebp - 0x880]
push eax
push dword [ebp - 0x880]
call fcn.004043b0
xor eax, eax
mov dword [ebp - 0x86c], 7
mov word [ebp - 0x880], ax
mov eax, dword [ebp - 0x884]
mov dword [ebp - 0x870], 0
cmp eax, 8
jb 0x40a338
inc eax
lea ecx, [ebp - 0x898]
push eax
push dword [ebp - 0x898]
call fcn.004043b0
xor eax, eax
mov dword [ebp - 0x884], 7
mov word [ebp - 0x898], ax
mov eax, dword [ebp - 0x89c]
mov dword [ebp - 0x888], 0
cmp eax, 8
jb 0x40a373
inc eax
lea ecx, [ebp - 0x8b0]
push eax
push dword [ebp - 0x8b0]
call fcn.004043b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00572ac9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret