Function at 0x418440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430818
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Entering___SetLocationInfo
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
lea eax, [ebp - 0x218]
xor edi, edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [ebp - 0x218], di
jne 0x4184a0
xor ecx, ecx
jmp 0x4184bf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4184b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, 0x44803c
push eax
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_
push 0xd
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.invoked_dir:
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], ax
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_
push 0xffffffffffffffff
push 0
push 0x44803c
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], 8
jb 0x418557
push dword [ebp - 0x230]
call fcn.0041aa29
add esp, 4
mov eax, dword [0x44b1b8]
mov edx, dword [eax]
cmp word [edx], 0
jne 0x418568
xor ecx, ecx
jmp 0x41857f
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418570
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x44800c
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_
push 0xe
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.program_name:
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_
push 0xffffffffffffffff
push 0
push 0x44800c
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 1
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
cmp dword [ebp - 0x21c], 8
jb 0x41860e
push dword [ebp - 0x230]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
push 1
push 0xffffffffffffffff
push 0x43304c
mov ecx, 0x44800c
mov dword [ebp - 4], 2
call sym.SetupBD.exe_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t_const___unsigned_int__unsigned_int_const
push 2
push 0xffffffffffffffff
push 0x434f1c
mov ecx, 0x44800c
mov esi, eax
call sym.SetupBD.exe_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t_const___unsigned_int__unsigned_int_const
cmp esi, 0xffffffff
jg 0x418720
cmp eax, 0xffffffff
jg 0x418720
cmp dword [0x448050], 8
mov edx, 0x44803c
mov eax, dword [0x44804c]
cmovae edx, dword [0x44803c]
movzx eax, word [edx + eax*2 - 2]
mov edx, 0x5c
cmp dx, ax
je 0x4186a2
push 0x431fe0
mov ecx, 0x44803c
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__
push 0x44800c
lea eax, [ebp - 0x230]
push 0x44803c
push eax
call fcn.0040faa0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x260]
cmp eax, esi
je 0x418707
cmp dword [ebp - 0x24c], 8
jb 0x4186de
push dword [ebp - 0x260]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [ebp - 0x24c], 7
push esi
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
call sym.SetupBD.exe_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::_Assign_rv_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
cmp dword [ebp - 0x21c], 8
jb 0x418734
push dword [ebp - 0x230]
call fcn.0041aa29
add esp, 4
jmp 0x418734
push 0xffffffffffffffff
push 0
push 0x44800c
lea ecx, [ebp - 0x260]
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_
push 0xb
xor eax, eax
mov dword [ebp - 0x264], 7
push str.full_path:
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x278]
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
lea ecx, [ebp - 0x260]
push 1
push 0xffffffffffffffff
push 0x431fe0
call sym.SetupBD.exe_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t_const___unsigned_int__unsigned_int_const
cmp eax, 0xffffffff
jle 0x41882c
push eax
push 0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_
mov esi, eax
cmp esi, 0x448024
je 0x418815
cmp dword [0x448038], 8
jb 0x4187ee
push dword [0x448024]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [0x448038], 7
push esi
mov ecx, 0x448024
mov dword [0x448034], 0
mov word [0x448024], ax
call sym.SetupBD.exe_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::_Assign_rv_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
cmp dword [ebp - 0x21c], 8
jb 0x41882c
push dword [ebp - 0x230]
call fcn.0041aa29
add esp, 4
push 0xd
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.SetupBD_dir:
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_
push 0xffffffffffffffff
push 0
push 0x448024
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x21c], 8
jb 0x4188b0
push dword [ebp - 0x230]
call fcn.0041aa29
add esp, 4
push str.SetupBD.ini
lea eax, [ebp - 0x290]
push 0x448024
push eax
call fcn.0040fb60
cmp dword [ebp - 0x27c], 8
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0x290]
push ecx
push eax
call fcn.0041df57
add esp, 0x14
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
push 0xa
push str.ini_file:
test eax, eax
jne 0x41893e
lea edi, [eax + 1]
mov word [ebp - 0x230], ax
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x230]
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_
jmp 0x418978
xor eax, eax
mov word [ebp - 0x230], ax
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x230]
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_
push 0xb
push str.__NOT_FOUND
lea ecx, [ebp - 0x230]
call sym.SetupBD.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const___unsigned_int_
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
cmp dword [ebp - 0x21c], 8
jb 0x4189b1
push dword [ebp - 0x230]
call fcn.0041aa29
add esp, 4
cmp dword [ebp - 0x27c], 8
jb 0x4189c8
push dword [ebp - 0x290]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [ebp - 0x27c], 7
cmp dword [ebp - 0x264], 8
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
jb 0x4189fc
push dword [ebp - 0x278]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [ebp - 0x264], 7
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
jb 0x418a30
push dword [ebp - 0x260]
call fcn.0041aa29
add esp, 4
mov eax, edi
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.0041b486
mov esp, ebp
pop ebp
ret