Function at 0x405d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429c53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
push esi
xor eax, eax
mov dword [ebp - 0x54], 7
movups xmmword [ebp - 0x68], xmm0
push edi
mov word [ebp - 0x68], ax
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
push eax
push 0x104
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00407560
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 0x104
cmovae eax, dword [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [ebp - 0x10], 8
lea edi, [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
cmovae edi, edx
test esi, esi
je 0x4062d7
push 0x100
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0040d680
add esp, 0xc
mov ecx, 0x42a65c
mov edx, 0x100
movzx eax, word [ecx]
cmp ax, dx
jae 0x405e35
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x254], 1
cmp ecx, 0x42a65e
jne 0x405de3
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
nop
movzx eax, word [ecx]
cmp ax, dx
jae 0x405e22
cmp byte [ebp + eax - 0x254], 0
jne 0x405e2f
cmp ecx, edi
je 0x4062d4
sub ecx, 2
jmp 0x405e10
sub ecx, edi
sar ecx, 1
jmp 0x405e72
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
movzx esi, word [ecx]
mov edx, 1
mov eax, 0x42a65c
cmp word [eax], si
je 0x405e6b
add eax, 2
sub edx, 1
jne 0x405e50
cmp ecx, edi
je 0x405e66
sub ecx, 2
jmp 0x405e43
or ecx, 0xffffffff
jmp 0x405e6f
sub ecx, edi
sar ecx, 1
mov esi, dword [ebp - 0x14]
cmp ecx, 0xffffffff
je 0x4062d4
push 0x16
push 0x42a660
lea eax, [ecx + 1]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.00408ba0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0
push 0
push 0x42a7bc
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x405eea
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x10]
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp ecx, 8
jb 0x406020
mov edx, dword [ebp - 0x24]
jmp 0x405ff1
mov edx, dword [ebp - 0x28]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ef2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.00407700
push dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 1
cmovae eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x154]
push 0x40
push 1
push eax
mov dword [ebp - 0x28], 0
call fcn.00404150
mov eax, dword [ebp - 0x154]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x158], eax
xor eax, eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
cmp dword [ebp - 0xf8], eax
jne 0x406032
mov esi, dword [ebp + 8]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x154]
call fcn.00404ee0
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x405fd2
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405fc8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406334
push ecx
push edx
call fcn.0040bc5d
add esp, 8
mov ecx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp ecx, 8
jb 0x406020
mov edx, dword [ebp - 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406016
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406334
push ecx
push edx
call fcn.0040bc5d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x154]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x124]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
call fcn.00403c50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x30]
call eax
movzx edi, ax
mov byte [ebp - 4], 3
test esi, esi
je 0x4060a0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x4060a0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.004034c0
add esp, 0xc
lea ecx, [ebp - 0x144]
call fcn.00407a50
test eax, eax
jne 0x4060ff
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x11c], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x148]
and eax, 0x17
mov dword [ebp + ecx - 0x148], eax
mov ecx, dword [ebp + ecx - 0x144]
and ecx, eax
jne 0x406339
mov ecx, dword [ebp - 0x70]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x40637b
cmp dword [ebp - 0x6c], 8
lea eax, [ebp - 0x80]
mov edi, dword [ebp - 0x80]
mov esi, 7
cmovae eax, edi
mov dword [ebp - 0x40], 0
inc ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x30], ecx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2c], eax
movups xmmword [ebp - 0x50], xmm0
cmp ecx, esi
jbe 0x40617d
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40615e
mov esi, 0x7ffffffe
jmp 0x406168
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x50]
call fcn.00401270
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], ecx
mov ecx, 0x5c
mov dword [ebp - 0x3c], esi
mov word [eax], cx
lea ecx, [eax + 2]
mov eax, dword [ebp - 0x70]
add eax, eax
push eax
push dword [ebp - 0x34]
push ecx
call fcn.0040cb70
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, dword [ebp - 0x30]
add esp, 0xc
mov word [eax + ecx*2], dx
push 0x18
push str.ScreenSelectorPrefs.txt
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.00407700
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
movups xmmword [ebp - 0x98], xmm1
mov dword [eax + 0x10], 0
movq qword [ebp - 0x88], xmm0
mov dword [eax + 0x14], 7
mov word [eax], cx
cmp dword [ebp - 0x84], 8
lea ecx, [ebp - 0x98]
push dword [ebp - 0x88]
movd eax, xmm1
mov byte [ebp - 4], 6
cmovae ecx, eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00407700
mov ecx, dword [ebp - 0x84]
cmp ecx, 8
jb 0x406250
mov edx, dword [ebp - 0x98]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406246
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406380
push ecx
push edx
call fcn.0040bc5d
add esp, 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x40628a
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406280
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406380
push ecx
push edx
call fcn.0040bc5d
add esp, 8
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.004044b0
mov eax, dword [ebp - 0x6c]
cmp eax, 8
jb 0x405f8d
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4062c5
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406334
push ecx
push edi
call fcn.0040bc5d
add esp, 8
jmp 0x405f8d
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, dword [ebp - 0x10]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ebp - 0x68]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x58]
movq qword [esi + 0x10], xmm0
cmp edi, 8
jb 0x406020
lea ecx, [edi*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406016
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406016
call fcn.0041072f
test cl, 4
je 0x406345
mov esi, str.ios_base::badbit_set
jmp 0x406355
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x38]
push 1
push eax
call fcn.00408590
add esp, 8
lea ecx, [ebp - 0x4c]
push eax
push esi
call fcn.00404830
push 0x4376b8
lea eax, [ebp - 0x4c]
push eax
call fcn.0040cb03
call fcn.00401260
call fcn.0041072f
int3