Function at 0x10005770
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100298ec
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
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 ebx, ecx
cmp dword [ebx + 0x84], 8
lea edx, [ebx + 0x70]
jb 0x100057ae
mov edx, dword [edx]
cmp word [edx], 0
jne 0x100057b8
xor ecx, ecx
jmp 0x100057cf
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100057c0
sub ecx, esi
sar ecx, 1
push ecx
lea edi, [ebx + 0xd0]
push edx
mov ecx, edi
call fcn.10002b40
push 0xb
push str.appinfo.ini
mov ecx, edi
call fcn.10005f40
push str.gamegf
push 0x1002b594
push str.AppConfig
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.100034e0
lea esi, [ebx + 0xe8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x248]
cmp esi, eax
je 0x1000582c
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10002a20
cmp dword [esi + 0x14], 8
jb 0x10005836
mov eax, dword [esi]
jmp 0x10005838
mov eax, esi
push 6
push str.gamegf
push dword [esi + 0x10]
push eax
call fcn.10002840
add esp, 0x10
test eax, eax
jne 0x100058e0
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10015420
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x10005870
mov edi, dword [edi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.gamegf
push 0x1002b594
push str.AppConfig
call edi
cmp word [ebp - 0x218], 0
jne 0x100058b1
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
mov ecx, esi
call fcn.10002b40
jmp 0x100058e6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100058c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10002b40
jmp 0x100058e6
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [esi + 0x14], 8
jb 0x100058f0
mov eax, dword [esi]
jmp 0x100058f2
mov eax, esi
push 6
push str.gamegf
push dword [esi + 0x10]
push eax
call fcn.10002840
add esp, 0x10
test eax, eax
jne 0x100059f0
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10015420
add esp, 0xc
mov dword [ebp - 0x21c], 7
xor ecx, ecx
mov dword [ebp - 0x220], 0
lea eax, [ebx + 0x58]
mov word [ebp - 0x230], cx
push 0xffffffffffffffff
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.10002a20
push 0xb
push str.appinfo.ini
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.10005f40
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.gamegf
push 0x1002b594
push str.AppConfig
call edi
cmp word [ebp - 0x218], 0
jne 0x100059a7
xor ecx, ecx
jmp 0x100059bf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100059b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.10002b40
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x100059f0
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.10002c40
cmp dword [esi + 0x14], 8
jb 0x100059fa
mov eax, dword [esi]
jmp 0x100059fc
mov eax, esi
push 6
push str.gamegf
push dword [esi + 0x10]
push eax
call fcn.10002840
add esp, 0x10
test eax, eax
jne 0x10005a8e
push str.gamegf
push 0x1002b594
push str.AppConfig
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.10003700
mov edi, eax
cmp esi, edi
je 0x10005a70
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x10005a49
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10002c40
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10005a61
mov eax, dword [esi]
jmp 0x10005a63
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.10002660
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x10005a8e
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.10002c40
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x10005aac
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
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