Function at 0x405bf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b2af
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x43e070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x68], edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x120]
sub esp, 8
mov dword [ebp - 4], 0
xor al, al
mov byte [ebp - 0x5d], al
call fcn.00401970
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x110]
call fcn.00408010
mov edx, 0x5c
mov ecx, eax
call fcn.004030d0
mov edx, edi
lea ecx, [ebp - 0x110]
call fcn.00408010
mov edx, 0x5f
mov ecx, eax
call fcn.004030d0
lea edx, [edi + 0x30]
mov ecx, eax
call fcn.00408010
mov edx, str..ini
mov ecx, eax
call fcn.00402e10
lea ecx, [ebp - 0x110]
call fcn.004036d0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401860
mov esi, eax
lea ebx, [edi + 0x18]
cmp ebx, esi
je 0x405cec
mov eax, dword [ebx + 0x14]
cmp eax, 8
jb 0x405cc5
inc eax
mov ecx, ebx
push eax
push dword [ebx]
call fcn.00405680
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x405cdd
mov eax, dword [ebx]
jmp 0x405cdf
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push esi
call fcn.00404f70
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x405d05
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00405680
cmp dword [ebx + 0x14], 8
jb 0x405d0f
mov eax, dword [ebx]
jmp 0x405d11
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405d37
cmp dword [ebx + 0x14], 8
jb 0x405d26
mov eax, dword [ebx]
jmp 0x405d28
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x405f62
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x6c], 1
call fcn.00408290
mov edi, dword [edi + 0x58]
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 3
mov esi, dword [ecx + 0x54]
lea ecx, [ebp - 0x120]
call fcn.00408290
cmp esi, edi
je 0x405de2
mov edx, 0x4395d8
lea ecx, [ebp - 0x110]
call fcn.00402e10
push dword [ebp - 0x64]
mov ecx, eax
call fcn.00406180
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x120]
call fcn.00408f50
cmp dword [ebx + 0x14], 8
jb 0x405db2
mov edx, dword [ebx]
jmp 0x405db4
mov edx, ebx
mov ecx, dword [esi]
cmp dword [ecx + 0x14], 8
jb 0x405dbe
mov ecx, dword [ecx]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push edx
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
push str.linked
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and dword [ebp - 0x6c], eax
add esi, 8
inc dword [ebp - 0x64]
jmp 0x405d71
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 4
mov eax, dword [esi + 0x58]
sub eax, dword [esi + 0x54]
sar eax, 3
push eax
call fcn.00406180
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x120]
call fcn.00408f50
cmp dword [ebx + 0x14], 8
jb 0x405e28
mov ebx, dword [ebx]
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push ebx
cmovae eax, dword [ebp - 0x5c]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push 0x4395c0
push str.linked
call ebx
lea ecx, [ebp - 0x120]
call fcn.00408290
mov edi, dword [esi + 0x4c]
mov esi, dword [esi + 0x48]
cmp esi, edi
je 0x405e7a
push dword [esi]
lea ecx, [ebp - 0x110]
call fcn.00406320
mov edx, 0x3a
mov ecx, eax
call fcn.004030d0
add esi, 4
jmp 0x405e58
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x120]
call fcn.00408f50
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x405ed0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 1
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
dec esi
cmp dword [ebp - 0x18], 8
lea esi, [eax + esi*2]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
sub esi, eax
sar esi, 1
push esi
call fcn.00405260
mov ecx, dword [ebp - 0x68]
add ecx, 0x18
cmp dword [ecx + 0x14], 8
jb 0x405ede
mov ecx, dword [ecx]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
push 0x4395e0
push str.Questionnaire
call ebx
mov eax, dword [ebp - 0x18]
mov bl, 1
cmp eax, 8
jb 0x405f0e
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00405680
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x405f37
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00405680
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], 0
cmp eax, 8
jb 0x405f65
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00405680
jmp 0x405f65
mov bl, byte [ebp - 0x5d]
lea ecx, [ebp - 0xb8]
call fcn.00401880
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0xb8], vtable.std::ios_base.0
call fcn.004118b5
add esp, 4
jmp 0x405f98
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004127dd
mov esp, ebp
pop ebp
ret 8