Function at 0x4096d0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d067
mov eax, dword fs:[0]
push eax
sub esp, 0x89c
mov eax, dword [0x627a40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00576f50
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.00576f50
add esp, 0xc
mov dword [ebp - 0x894], 7
xor eax, eax
mov dword [ebp - 0x898], 0
lea ecx, [ebp - 0x8a8]
mov word [ebp - 0x8a8], ax
push eax
push 0x619488
call fcn.00403d10
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x619488
lea ecx, [ebp - 0x890]
mov dword [ebp - 0x87c], 7
mov dword [ebp - 0x880], 0
mov word [ebp - 0x890], ax
call fcn.00403d10
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x619488
lea ecx, [ebp - 0x878]
mov dword [ebp - 0x864], 7
mov dword [ebp - 0x868], 0
mov word [ebp - 0x878], ax
call fcn.00403d10
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x619488
lea ecx, [ebp - 0x860]
mov dword [ebp - 0x84c], 7
mov dword [ebp - 0x850], 0
mov word [ebp - 0x860], ax
call fcn.00403d10
push ecx
push 0x2b
lea edx, [ebp - 0x420]
mov byte [ebp - 4], 3
call fcn.00424260
lea edi, [ebp - 0x420]
add esp, 8
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x409811
mov eax, dword [0x61970c]
lea edx, [ebp - 0x420]
mov dword [edi], eax
add edx, 0xfffffffe
nop dword [eax]
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x409830
mov ebx, dword [0x619710]
lea edi, [ebp - 0x420]
mov ecx, dword [str.nNengWB]
add edi, 0xfffffffe
mov dword [edx], ebx
mov dword [edx + 4], ecx
mov ecx, dword [0x619718]
mov dword [edx + 8], ecx
mov ecx, dword [0x61971c]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x619720]
mov dword [edx + 0x10], ecx
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x409871
lea ecx, [ebp - 0x420]
mov dword [edi], eax
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x409890
mov eax, dword [str.nNengWB]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov eax, dword [0x619718]
mov dword [ecx + 8], eax
mov eax, dword [0x61971c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x619720]
mov dword [ecx + 0x10], eax
lea ecx, [ebp - 0x420]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4098d0
mov eax, dword [str..ini]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ecx], eax
mov eax, dword [0x619728]
mov dword [ecx + 4], eax
mov ax, word [0x61972c]
mov word [ecx + 8], ax
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x619488
push str.CfgRootPath
push str.Globals
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409930
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4099dd
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x4099dd
cmp word [ebp - 0x218], 0
jne 0x40996c
xor ecx, ecx
jmp 0x409984
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409975
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00403d10
cmp word [ebp - 0x218], 0
jne 0x4099a5
xor ecx, ecx
jmp 0x4099bf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4099b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x2c]
call fcn.00403d10
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x409d6e
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00576f50
lea ecx, [esi + 0x5c]
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x4099fe
mov ecx, dword [ecx]
lea edx, [ebp - 0x830]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x409a04
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00576f50
add esp, 0xc
lea eax, [ebp - 0x830]
push str.WanNengWBInfo.ini
push eax
lea eax, [ebp - 0x628]
push str._s_s
push eax
call fcn.00408f60
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x619488
push str.CfgRootPath
push str.AppInfo
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409a80
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x409b2d
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x409b2d
cmp word [ebp - 0x218], 0
jne 0x409ab6
xor ecx, ecx
jmp 0x409acf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409ac0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x890]
call fcn.00403d10
cmp word [ebp - 0x218], 0
jne 0x409af0
xor ecx, ecx
jmp 0x409b0f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409b00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x2c]
call fcn.00403d10
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x409d6e
cmp dword [esi + 0x88], 8
lea eax, [esi + 0x74]
jb 0x409b3b
mov eax, dword [eax]
push str.WanNengWBInfo.ini
push eax
lea eax, [ebp - 0x628]
push str._s_s
push eax
call fcn.00408f60
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x619488
push str.CfgRootPath
push str.AppInfo
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409b82
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x409c2d
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x409c2d
cmp word [ebp - 0x218], 0
jne 0x409bb8
xor ecx, ecx
jmp 0x409bd0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409bc1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x878]
call fcn.00403d10
cmp word [ebp - 0x218], 0
jne 0x409bf1
xor ecx, ecx
jmp 0x409c0f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x2c]
call fcn.00403d10
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
je 0x409d6e
push 0x619488
push str.CfgRootPath
push str.AppInfo
lea eax, [ebp - 0x848]
push eax
call fcn.0040bb40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x848]
mov edi, dword [ebp - 0x834]
cmp edi, 8
mov ebx, dword [ebp - 0x848]
cmovae ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c67
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x409ce2
cmp edi, 8
lea eax, [ebp - 0x848]
cmovae eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409cd6
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x860]
call fcn.00403e10
lea ecx, [esi + 0x2c]
lea eax, [ebp - 0x848]
cmp ecx, eax
je 0x409cbe
push 0xffffffffffffffff
push 0
push eax
call fcn.00403e10
cmp byte [esi + 8], 0
mov byte [esi + 6], 1
jne 0x409cd6
mov edi, dword [ebp - 0x834]
mov ebx, dword [ebp - 0x848]
jmp 0x409d3c
mov edi, dword [ebp - 0x834]
mov ebx, dword [ebp - 0x848]
cmp byte [esi + 8], 0
je 0x409d3c
cmp byte [esi + 6], 0
je 0x409d3c
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00404a90
test eax, eax
je 0x409d08
mov byte [esi + 9], 1
lea eax, [ebp - 0x878]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00404a90
test eax, eax
je 0x409d22
mov byte [esi + 9], 1
lea eax, [ebp - 0x860]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00404a90
test eax, eax
je 0x409d3c
mov byte [esi + 9], 1
cmp edi, 8
jb 0x409d51
lea eax, [edi + 1]
push eax
push ebx
lea ecx, [ebp - 0x848]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
mov eax, dword [ebp - 0x84c]
cmp eax, 8
jb 0x409d8c
inc eax
lea ecx, [ebp - 0x860]
push eax
push dword [ebp - 0x860]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x84c], 7
mov word [ebp - 0x860], ax
mov eax, dword [ebp - 0x864]
mov dword [ebp - 0x850], 0
cmp eax, 8
jb 0x409dc7
inc eax
lea ecx, [ebp - 0x878]
push eax
push dword [ebp - 0x878]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x864], 7
mov word [ebp - 0x878], ax
mov eax, dword [ebp - 0x87c]
mov dword [ebp - 0x868], 0
cmp eax, 8
jb 0x409e02
inc eax
lea ecx, [ebp - 0x890]
push eax
push dword [ebp - 0x890]
call fcn.00404090
xor eax, eax
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
mov eax, dword [ebp - 0x894]
mov dword [ebp - 0x880], 0
cmp eax, 8
jb 0x409e3d
inc eax
lea ecx, [ebp - 0x8a8]
push eax
push dword [ebp - 0x8a8]
call fcn.00404090
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00570ea9
mov esp, ebp
pop ebp
ret