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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fdf5
mov eax, dword fs:[0]
push eax
sub esp, 0x6d8
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005619c0
add esp, 0xc
mov dword [ebp - 0x43c], 7
xor eax, eax
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x450]
mov word [ebp - 0x450], ax
push eax
push 0x5db124
call fcn.00410890
mov dword [ebp - 4], 0
call fcn.004123e0
mov esi, eax
test esi, esi
je 0x4113cc
xor eax, eax
mov dword [ebp - 0x424], 7
cmp word [str.UserDataFilePath], ax
mov ecx, 0x10
mov dword [ebp - 0x428], 0
cmove ecx, eax
mov word [ebp - 0x438], ax
push ecx
push str.UserDataFilePath
lea ecx, [ebp - 0x438]
call fcn.00410890
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x480]
mov ecx, esi
push eax
call fcn.00412ea0
mov edi, eax
lea eax, [ebp - 0x450]
cmp eax, edi
je 0x411370
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x411347
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x43c], 7
push edi
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
call fcn.00410f90
mov eax, dword [ebp - 0x46c]
cmp eax, 8
jb 0x41138e
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x46c], 7
mov word [ebp - 0x480], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x470], 0
cmp eax, 8
jb 0x4113cc
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00411000
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4114fc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005619c0
add esp, 0xc
lea eax, [ebp - 0x450]
cmp dword [ebp - 0x43c], 8
cmovae eax, dword [ebp - 0x450]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5db124
push 0x5db2bc
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test esi, esi
je 0x41186a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4c8]
call fcn.0040f470
push 0x5db3a8
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 3
call fcn.0040f470
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x6e0]
mov ecx, esi
push eax
call fcn.004135f0
mov ecx, dword [ebp - 0x6e0]
lea eax, [ebp - 0x4c8]
add ecx, 0x28
cmp ecx, eax
je 0x41149f
push 0xffffffffffffffff
push 0
push eax
call fcn.00410a40
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x4114bd
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x428], 0
cmp eax, 8
jb 0x41186a
inc eax
lea ecx, [ebp - 0x4c8]
push eax
push dword [ebp - 0x4c8]
jmp 0x411865
push 0x5db2e0
lea eax, [ebp - 0x420]
push str.gf_s
push eax
call fcn.0040e750
xor eax, eax
mov dword [ebp - 0x454], 7
add esp, 0xc
mov dword [ebp - 0x458], 0
mov word [ebp - 0x468], ax
cmp word [ebp - 0x420], ax
jne 0x41153f
xor ecx, ecx
jmp 0x41155f
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411550
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x468]
call fcn.00410890
mov byte [ebp - 4], 5
cmp dword [ebp - 0x458], 0xc
jb 0x41160d
sub esp, 8
lea eax, [ebp - 0x480]
lea ecx, [ebp - 0x468]
push eax
call fcn.00411ba0
mov edi, eax
lea eax, [ebp - 0x468]
cmp eax, edi
je 0x4115eb
mov eax, dword [ebp - 0x454]
cmp eax, 8
jb 0x4115c2
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x454], 7
push edi
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x458], 0
mov word [ebp - 0x468], ax
call fcn.00410f90
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x46c]
cmp eax, 8
jb 0x41160d
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.00411000
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
lea ecx, [ebp - 0x11c]
cmovae eax, dword [ebp - 0x468]
mov dword [ebp - 0x120], ecx
lea ecx, [ebp - 0x120]
push eax
call fcn.00411c70
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x484], 0xf
mov dword [ebp - 0x488], 0
mov byte [ebp - 0x498], 0
cmp byte [edx], 0
jne 0x411667
xor ecx, ecx
jmp 0x411679
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411670
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x498]
call fcn.00412280
lea edx, [ebp - 0x498]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x438]
call fcn.0041c380
mov eax, dword [ebp - 0x484]
cmp eax, 0x10
jb 0x4116b9
inc eax
lea ecx, [ebp - 0x498]
push eax
push dword [ebp - 0x498]
call fcn.0040f770
mov dword [ebp - 0x484], 0xf
mov dword [ebp - 0x488], 0
mov byte [ebp - 0x498], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
cmp eax, ecx
je 0x4116f1
push eax
call fcn.004fb565
add esp, 4
test esi, esi
je 0x411813
cmp dword [ebp - 0x424], 0x10
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x6d4]
cmovae eax, dword [ebp - 0x438]
mov dword [ebp - 0x6d8], ecx
lea ecx, [ebp - 0x6d8]
push eax
call fcn.00411be0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x4b0]
push dword [ebp - 0x6d8]
call fcn.0040f470
push 0x5db3a8
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 0xd
call fcn.0040f470
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x6e0]
mov ecx, esi
push eax
call fcn.004135f0
mov ecx, dword [ebp - 0x6e0]
lea eax, [ebp - 0x4b0]
add ecx, 0x28
cmp ecx, eax
je 0x411784
push 0xffffffffffffffff
push 0
push eax
call fcn.00410a40
mov eax, dword [ebp - 0x46c]
cmp eax, 8
jb 0x4117a2
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x46c], 7
mov word [ebp - 0x480], ax
mov eax, dword [ebp - 0x49c]
mov dword [ebp - 0x470], 0
cmp eax, 8
jb 0x4117dd
inc eax
lea ecx, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4b0]
call fcn.00411000
xor eax, eax
mov dword [ebp - 0x49c], 7
mov word [ebp - 0x4b0], ax
lea ecx, [ebp - 0x6d4]
mov eax, dword [ebp - 0x6d8]
mov dword [ebp - 0x4a0], 0
cmp eax, ecx
je 0x411813
push eax
call fcn.004fb565
add esp, 4
mov eax, dword [ebp - 0x424]
cmp eax, 0x10
jb 0x411831
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.0040f770
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x438], 0
cmp eax, 8
jb 0x41186a
inc eax
lea ecx, [ebp - 0x468]
push eax
push dword [ebp - 0x468]
call fcn.00411000
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x411888
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.00411000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret