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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029867
mov eax, dword fs:[0]
push eax
sub esp, 0x89c
mov eax, dword [0x1003b0ac]
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.10015420
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10015420
add esp, 0x18
mov dword [ebp - 0x834], 7
xor eax, eax
mov dword [ebp - 0x838], 0
lea ecx, [ebp - 0x848]
mov word [ebp - 0x848], ax
push eax
push 0x1002b428
call fcn.10002b40
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x1002b428
lea ecx, [ebp - 0x8a8]
mov dword [ebp - 0x894], 7
mov dword [ebp - 0x898], 0
mov word [ebp - 0x8a8], ax
call fcn.10002b40
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x1002b428
lea ecx, [ebp - 0x890]
mov dword [ebp - 0x87c], 7
mov dword [ebp - 0x880], 0
mov word [ebp - 0x890], ax
call fcn.10002b40
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x1002b428
lea ecx, [ebp - 0x878]
mov dword [ebp - 0x864], 7
mov dword [ebp - 0x868], 0
mov word [ebp - 0x878], ax
call fcn.10002b40
push 0
push 0x2b
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
push 0
call fcn.1000a6c0
lea edi, [ebp - 0x420]
add esp, 0x10
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10004492
mov eax, dword [0x1002b454]
lea edx, [ebp - 0x420]
mov dword [edi], eax
add edx, 0xfffffffe
nop
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x100044b0
mov ebx, dword [str.StoneArena]
lea edi, [ebp - 0x420]
mov ecx, dword [0x1002b438]
add edi, 0xfffffffe
mov dword [edx], ebx
mov dword [edx + 4], ecx
mov ecx, dword [0x1002b43c]
mov dword [edx + 8], ecx
mov ecx, dword [0x1002b440]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x1002b444]
mov dword [edx + 0x10], ecx
mov cx, word [0x1002b448]
mov word [edx + 0x14], cx
nop dword [eax]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10004500
lea ecx, [ebp - 0x420]
mov dword [edi], eax
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10004520
mov eax, dword [0x1002b438]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov eax, dword [0x1002b43c]
mov dword [ecx + 8], eax
mov eax, dword [0x1002b440]
mov dword [ecx + 0xc], eax
mov eax, dword [0x1002b444]
mov dword [ecx + 0x10], eax
mov ax, word [0x1002b448]
mov word [ecx + 0x14], ax
lea ecx, [ebp - 0x420]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10004561
mov eax, dword [str..ini]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ecx], eax
mov eax, dword [0x1002b464]
mov dword [ecx + 4], eax
mov ax, word [0x1002b468]
mov word [ecx + 8], ax
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1002b428
push str.UsrPath
push str.Globals
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100045c0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x1000466d
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x1000466d
cmp word [ebp - 0x218], 0
jne 0x100045fc
xor ecx, ecx
jmp 0x10004614
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004605
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.10002b40
cmp word [ebp - 0x218], 0
jne 0x10004635
xor ecx, ecx
jmp 0x1000464f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004640
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x10]
call fcn.10002b40
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x10004ab5
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.10015420
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10015420
add esp, 0x18
cmp dword [esi + 0x68], 0
jne 0x100046ca
push 0x104
lea eax, [ebp - 0x628]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push 0x5c
push eax
call fcn.1001557a
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x100046f1
cmp dword [esi + 0x6c], 8
lea ecx, [esi + 0x58]
jb 0x100046d5
mov ecx, dword [ecx]
lea edx, [ebp - 0x628]
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x100046e0
push str.appinfo.ini
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push str._s_s
push eax
call fcn.10002d60
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1002b428
push str.UsrPath
push str.AppConfig
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004740
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x100047ed
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x100047ed
cmp word [ebp - 0x218], 0
jne 0x10004776
xor ecx, ecx
jmp 0x1000478f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004780
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.10002b40
cmp word [ebp - 0x218], 0
jne 0x100047b0
xor ecx, ecx
jmp 0x100047cf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100047c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x10]
call fcn.10002b40
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x10004ab5
cmp dword [esi + 0x84], 8
lea eax, [esi + 0x70]
jb 0x100047fb
mov eax, dword [eax]
push str.appinfo.ini
push eax
lea eax, [ebp - 0x830]
push str._s_s
push eax
call fcn.10002d60
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1002b428
push str.UsrPath
push str.AppConfig
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004842
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x100048ed
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
je 0x100048ed
cmp word [ebp - 0x218], 0
jne 0x10004878
xor ecx, ecx
jmp 0x10004890
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004881
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x890]
call fcn.10002b40
cmp word [ebp - 0x218], 0
jne 0x100048b1
xor ecx, ecx
jmp 0x100048cf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100048c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x10]
call fcn.10002b40
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x10004ab5
push 0x1002b428
push str.UsrPath
push str.AppConfig
lea eax, [ebp - 0x860]
mov ecx, esi
push eax
call fcn.10003510
mov edi, dword [ebp - 0x84c]
lea ecx, [ebp - 0x860]
cmp edi, 8
mov byte [ebp - 4], 4
cmovae ecx, dword [ebp - 0x860]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004927
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x10004992
cmp edi, 8
lea eax, [ebp - 0x860]
cmovae eax, dword [ebp - 0x860]
push eax
call ebx
test eax, eax
je 0x1000498c
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x860]
push eax
lea ecx, [ebp - 0x878]
call fcn.10002a20
lea ecx, [esi + 0x10]
lea eax, [ebp - 0x860]
cmp ecx, eax
je 0x1000497e
push 0xffffffffffffffff
push 0
push eax
call fcn.10002a20
cmp byte [esi + 8], 0
mov byte [esi + 7], 1
je 0x10004a78
mov edi, dword [ebp - 0x84c]
cmp byte [esi + 8], 0
je 0x10004a7e
cmp byte [esi + 7], 0
je 0x10004a7e
cmp dword [ebp - 0x894], 8
lea ecx, [ebp - 0x8a8]
push dword [ebp - 0x898]
cmovae ecx, dword [ebp - 0x8a8]
lea eax, [ebp - 0x848]
cmp dword [ebp - 0x834], 8
mov ebx, dword [ebp - 0x838]
cmovae eax, dword [ebp - 0x848]
push ecx
push ebx
push eax
call fcn.10002840
add esp, 0x10
test eax, eax
je 0x100049ed
mov byte [esi + 9], 1
cmp dword [ebp - 0x87c], 8
lea ecx, [ebp - 0x890]
push dword [ebp - 0x880]
cmovae ecx, dword [ebp - 0x890]
lea eax, [ebp - 0x848]
cmp dword [ebp - 0x834], 8
push ecx
cmovae eax, dword [ebp - 0x848]
push ebx
push eax
call fcn.10002840
add esp, 0x10
test eax, eax
je 0x10004a2e
mov byte [esi + 9], 1
cmp dword [ebp - 0x864], 8
lea ecx, [ebp - 0x878]
push dword [ebp - 0x868]
cmovae ecx, dword [ebp - 0x878]
lea eax, [ebp - 0x848]
cmp dword [ebp - 0x834], 8
push ecx
cmovae eax, dword [ebp - 0x848]
push ebx
push eax
call fcn.10002840
add esp, 0x10
test eax, eax
je 0x10004a7e
push 1
lea ecx, [ebp - 0x848]
call fcn.100032c0
mov edi, dword [ebp - 0x84c]
cmp edi, 8
jb 0x10004a98
lea eax, [edi + 1]
push eax
push dword [ebp - 0x860]
lea ecx, [ebp - 0x860]
call fcn.10002c40
xor eax, eax
mov dword [ebp - 0x84c], 7
mov dword [ebp - 0x850], 0
mov word [ebp - 0x860], ax
mov eax, dword [ebp - 0x864]
cmp eax, 8
jb 0x10004ad3
inc eax
lea ecx, [ebp - 0x878]
push eax
push dword [ebp - 0x878]
call fcn.10002c40
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 0x10004b0e
inc eax
lea ecx, [ebp - 0x890]
push eax
push dword [ebp - 0x890]
call fcn.10002c40
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 0x10004b49
inc eax
lea ecx, [ebp - 0x8a8]
push eax
push dword [ebp - 0x8a8]
call fcn.10002c40
xor eax, eax
mov dword [ebp - 0x894], 7
mov word [ebp - 0x8a8], ax
mov eax, dword [ebp - 0x834]
mov dword [ebp - 0x898], 0
cmp eax, 8
jb 0x10004b84
inc eax
lea ecx, [ebp - 0x848]
push eax
push dword [ebp - 0x848]
call fcn.10002c40
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.100125ea
mov esp, ebp
pop ebp
ret