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

Disassembly:
push 0xffffffffffffffff
push 0x545034
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
call fcn.00415458
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40e3f7
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x3c], ebx
lea esi, [ebp + 4]
call fcn.00415458
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40e427
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x3c], 1
lea edi, [ebp + 8]
call fcn.00415458
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40e457
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push fcn.0040e390
push fcn.0040dfa0
push 0x3c
push 4
lea ecx, [ebp + 0x10]
push ecx
mov byte [esp + 0x50], 2
call fcn.00506797
mov byte [esp + 0x3c], 3
mov dword [ebp + 0xc], ebx
call fcn.00415458
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40e4a3
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x3c], 4
mov ecx, dword [0x59a3b0]
push ecx
lea edx, [esp + 0x18]
push str._sGameInfoSelfConfig.ini
push edx
call fcn.0040de30
mov ebx, dword [esp + 0x20]
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40e4ed
mov byte [esp + 0x3c], 3
lea eax, [ebx - 0x10]
jmp 0x40ec21
mov eax, dword [ebp]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40e513
push 0x104
mov ecx, ebp
call fcn.0040e0f0
mov eax, dword [ebp]
push ebx
push 0x104
push eax
push 0x56f8a7
push str.dlgCaption
push str.dlg_config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40e54e
push ecx
push eax
call fcn.00505327
add esp, 8
test eax, eax
jl 0x40ec52
mov ecx, dword [ebp]
cmp eax, dword [ecx - 8]
jg 0x40ec52
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp]
mov byte [eax + ecx], 0
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40e589
push 0x104
mov ecx, esi
call fcn.0040e0f0
mov eax, dword [esi]
push ebx
push 0x104
push eax
push 0x56f8a7
push str.description
push str.dlg_config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40e5c2
push ecx
push eax
call fcn.00505327
add esp, 8
test eax, eax
jl 0x40ec52
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40ec52
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40e5fb
push 0x104
mov ecx, edi
call fcn.0040e0f0
mov eax, dword [edi]
push ebx
push 0x104
push eax
push 0x56f8a7
push str.memo
push str.dlg_config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40e634
push ecx
push eax
call fcn.00505327
add esp, 8
test eax, eax
jl 0x40ec52
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x40ec52
push ebx
push 0
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
push str.btnCount
push str.dlg_config
mov byte [eax + ecx], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp + 0xc], eax
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e678
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x3c], 5
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e6a7
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x3c], 6
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e6d6
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x3c], 7
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e705
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x3c], 8
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e734
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x3c], 9
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e763
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x3c], 0xa
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e792
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x3c], 0xb
cmp dword [ebp + 0xc], 0
jle 0x40eb16
mov edi, dword [esp + 0x44]
mov ebp, 1
add edi, 0x14
lea ecx, [ecx]
push ebp
lea ecx, [esp + 0x2c]
push str.btn_dCaption
push ecx
call fcn.0040de30
push ebp
lea edx, [esp + 0x34]
push str.btn_dExe
push edx
call fcn.0040de30
push ebp
lea eax, [esp + 0x3c]
push str.btn_dParam
push eax
call fcn.0040de30
push ebp
lea ecx, [esp + 0x44]
push str.btn_dVer
push ecx
call fcn.0040de30
push ebp
lea edx, [esp + 0x64]
push str.btn_dModifyComp
push edx
call fcn.0040de30
push ebp
lea eax, [esp + 0x58]
push str.btn_dCloseDlg
push eax
call fcn.0040de30
add esp, 0x48
push ebp
lea ecx, [esp + 0x30]
push str.btn_dClue
push ecx
call fcn.0040de30
mov eax, dword [edi - 4]
lea esi, [edi - 4]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
add esp, 0xc
or eax, ecx
jge 0x40e85f
push 0x104
mov ecx, esi
call fcn.0040e0f0
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
push 0x104
push eax
mov eax, dword [esp + 0x34]
push 0x56f8a7
push eax
push str.dlg_config
call ebx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40e89e
push ecx
push eax
call fcn.00505327
add esp, 8
test eax, eax
jl 0x40ec52
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40ec52
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40e8d7
push 0x104
mov ecx, edi
call fcn.0040e0f0
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
push edx
push 0x104
push eax
mov eax, dword [esp + 0x30]
push 0x56f8a7
push eax
push str.dlg_config
call ebx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40e910
push ecx
push eax
call fcn.00505327
add esp, 8
test eax, eax
jl 0x40ec52
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x40ec52
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov eax, dword [edi + 4]
lea esi, [edi + 4]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40e94d
push 0x104
mov ecx, esi
call fcn.0040e0f0
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
push edx
push 0x104
push eax
mov eax, dword [esp + 0x2c]
push 0x56f8a7
push eax
push str.dlg_config
call ebx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40e986
push ecx
push eax
call fcn.00505327
add esp, 8
test eax, eax
jl 0x40ec52
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40ec52
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, dword [edi + 8]
lea esi, [edi + 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40e9c3
push 0x104
mov ecx, esi
call fcn.0040e0f0
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
push edx
push 0x104
push eax
mov eax, dword [esp + 0x28]
push 0x56f8a7
push eax
push str.dlg_config
call ebx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40e9fc
push ecx
push eax
call fcn.00505327
add esp, 8
test eax, eax
jl 0x40ec52
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40ec52
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, dword [edi + 0xc]
lea esi, [edi + 0xc]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40ea39
push 0x104
mov ecx, esi
call fcn.0040e0f0
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
push edx
push 0x104
push eax
mov eax, dword [esp + 0x24]
push 0x56f8a7
push eax
push str.dlg_config
call ebx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40ea72
push ecx
push eax
call fcn.00505327
add esp, 8
test eax, eax
jl 0x40ec52
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40ec52
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, dword [edi + 0x10]
lea esi, [edi + 0x10]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40eaaf
push 0x104
mov ecx, esi
call fcn.0040e0f0
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
mov ebx, dword [esp + 0x2c]
push edx
push 0x104
push eax
push 0x56f8a7
push ebx
push str.dlg_config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40eaec
push ecx
push eax
call fcn.00505327
add esp, 8
test eax, eax
jl 0x40ec52
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40ec52
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
inc ebp
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x44]
lea edx, [ebp - 1]
add edi, 0x18
cmp edx, dword [eax + 0xc]
jl 0x40e7c0
mov ebp, eax
add ebx, 0xfffffff0
mov byte [esp + 0x3c], 0xa
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb37
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x3c], 9
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 8
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eb81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eba6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ebcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ebf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 4
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 0x40ec15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
push 0x80070057
call fcn.0040e230
int3