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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002e897
mov eax, dword fs:[0]
push eax
sub esp, 0x89c
mov eax, dword [0x1004234c]
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
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1001a520
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1001a520
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 0x10031468
call fcn.10007770
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x10031468
lea ecx, [ebp - 0x8a8]
mov dword [ebp - 0x894], 7
mov dword [ebp - 0x898], 0
mov word [ebp - 0x8a8], ax
call fcn.10007770
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x10031468
lea ecx, [ebp - 0x890]
mov dword [ebp - 0x87c], 7
mov dword [ebp - 0x880], 0
mov word [ebp - 0x890], ax
call fcn.10007770
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x10031468
lea ecx, [ebp - 0x878]
mov dword [ebp - 0x864], 7
mov dword [ebp - 0x868], 0
mov word [ebp - 0x878], ax
call fcn.10007770
push 0
push 0x2b
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
push 0
call fcn.1000d570
lea edi, [ebp - 0x420]
add esp, 0x10
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x100057c2
mov eax, dword [0x100314b4]
mov dword [edi], eax
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
nop
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x100057e0
mov ecx, 6
mov esi, 0x100314b8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10005803
mov dword [edi], eax
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10005820
mov ecx, 6
mov esi, 0x100314b8
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x420]
add ecx, 0xfffffffe
movsw word es:[edi], word [esi]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10005843
mov eax, dword [str..ini]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ecx], eax
mov eax, dword [0x100314d8]
mov dword [ecx + 4], eax
mov ax, word [0x100314dc]
mov word [ecx + 8], ax
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10031468
push str.UsrPath
push str.Globals
call esi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100058a0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x1000594d
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x1000594d
cmp word [ebp - 0x218], 0
jne 0x100058dc
xor ecx, ecx
jmp 0x100058f4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100058e5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.10007770
cmp word [ebp - 0x218], 0
jne 0x10005915
xor ecx, ecx
jmp 0x1000592f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005920
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebx + 0x14]
call fcn.10007770
cmp byte [ebx + 8], 0
mov byte [ebx + 7], 1
je 0x10005d55
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.1001a520
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1001a520
lea ecx, [ebx + 0x5c]
add esp, 0x18
cmp dword [ecx + 0x14], 8
jb 0x10005981
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 0x10005987
push str.ConchPicInfo.ini
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x628]
push str._s_s
push eax
call fcn.100079d0
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10031468
push str.UsrPath
push str.AppInfo
call esi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100059e5
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x10005a8d
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x10005a8d
cmp word [ebp - 0x218], 0
jne 0x10005a1b
xor ecx, ecx
jmp 0x10005a33
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005a24
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.10007770
cmp word [ebp - 0x218], 0
jne 0x10005a54
xor ecx, ecx
jmp 0x10005a6f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005a60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebx + 0x14]
call fcn.10007770
cmp byte [ebx + 8], 0
mov byte [ebx + 7], 1
je 0x10005d55
cmp dword [ebx + 0x88], 8
lea eax, [ebx + 0x74]
jb 0x10005a9b
mov eax, dword [eax]
push str.ConchPicInfo.ini
push eax
lea eax, [ebp - 0x628]
push str._s_s
push eax
call fcn.100079d0
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10031468
push str.UsrPath
push str.AppInfo
call esi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005ae2
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x10005b8d
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x10005b8d
cmp word [ebp - 0x218], 0
jne 0x10005b18
xor ecx, ecx
jmp 0x10005b30
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005b21
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x890]
call fcn.10007770
cmp word [ebp - 0x218], 0
jne 0x10005b51
xor ecx, ecx
jmp 0x10005b6f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005b60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebx + 0x14]
call fcn.10007770
cmp byte [ebx + 8], 0
mov byte [ebx + 7], 1
je 0x10005d55
push 0x10031468
push str.UsrPath
push str.AppInfo
lea eax, [ebp - 0x860]
mov ecx, ebx
push eax
call fcn.100048b0
mov esi, dword [ebp - 0x84c]
lea ecx, [ebp - 0x860]
cmp esi, 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 0x10005bc7
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x10005c32
cmp esi, 8
lea eax, [ebp - 0x860]
cmovae eax, dword [ebp - 0x860]
push eax
call edi
test eax, eax
je 0x10005c2c
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x860]
push eax
lea ecx, [ebp - 0x878]
call fcn.10007650
lea ecx, [ebx + 0x14]
lea eax, [ebp - 0x860]
cmp ecx, eax
je 0x10005c1e
push 0xffffffffffffffff
push 0
push eax
call fcn.10007650
cmp byte [ebx + 8], 0
mov byte [ebx + 7], 1
je 0x10005d18
mov esi, dword [ebp - 0x84c]
cmp byte [ebx + 8], 0
je 0x10005d1e
cmp byte [ebx + 7], 0
je 0x10005d1e
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 edi, dword [ebp - 0x838]
cmovae eax, dword [ebp - 0x848]
push ecx
push edi
push eax
call fcn.10007340
add esp, 0x10
test eax, eax
je 0x10005c8d
mov byte [ebx + 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 edi
push eax
call fcn.10007340
add esp, 0x10
test eax, eax
je 0x10005cce
mov byte [ebx + 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 edi
push eax
call fcn.10007340
add esp, 0x10
test eax, eax
je 0x10005d1e
push 1
lea ecx, [ebp - 0x848]
call fcn.10004670
mov esi, dword [ebp - 0x84c]
cmp esi, 8
jb 0x10005d38
lea eax, [esi + 1]
push eax
push dword [ebp - 0x860]
lea ecx, [ebp - 0x860]
call fcn.10007870
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 0x10005d73
inc eax
lea ecx, [ebp - 0x878]
push eax
push dword [ebp - 0x878]
call fcn.10007870
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 0x10005dae
inc eax
lea ecx, [ebp - 0x890]
push eax
push dword [ebp - 0x890]
call fcn.10007870
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 0x10005de9
inc eax
lea ecx, [ebp - 0x8a8]
push eax
push dword [ebp - 0x8a8]
call fcn.10007870
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 0x10005e24
inc eax
lea ecx, [ebp - 0x848]
push eax
push dword [ebp - 0x848]
call fcn.10007870
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.10017646
mov esp, ebp
pop ebp
ret