Function at 0x417cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430794
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x448070]
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, dword [ebp + 8]
mov dword [ebp - 0x294], 0
push str.Entering___ResolvePah
push 0x44aca0
mov dword [ebp - 4], 0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0041c090
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [ebp - 0x218], ax
jne 0x417d7b
xor ecx, ecx
jmp 0x417d93
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417d84
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
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__::assign_wchar_t_const___unsigned_int_
push 1
push 0xffffffffffffffff
push 0x43304c
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
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
mov esi, 0x5c
cmp eax, 0xffffffff
jne 0x4180b3
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov byte [ebp - 4], 2
call fcn.00413450
mov esi, eax
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x220], 0
push 0xffffffffffffffff
push eax
push 0x448024
lea ecx, [ebp - 0x230]
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_
mov byte [ebp - 4], 3
cmp esi, 0x104
jg 0x417ed3
test esi, esi
jle 0x417ed3
lea esp, [esp]
push 1
push 0xffffffffffffffff
push 0x431fe0
lea ecx, [ebp - 0x230]
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 eax
push 0
lea eax, [ebp - 0x278]
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__::substr_unsigned_int__unsigned_int_
mov edi, eax
lea eax, [ebp - 0x230]
cmp eax, edi
je 0x417eb5
cmp dword [ebp - 0x21c], 8
jb 0x417e8c
push dword [ebp - 0x230]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
push edi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], 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 - 0x264], 8
jb 0x417ecc
push dword [ebp - 0x278]
call fcn.0041aa29
add esp, 4
dec esi
jne 0x417e40
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
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_
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
mov esi, 0x5c
cmovae eax, dword [ebp + 0xc]
movzx eax, word [eax]
cmp si, ax
jne 0x417f9f
push 2
push 0
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x248]
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_
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0040faa0
mov esi, eax
add esp, 0xc
lea eax, [ebp + 0xc]
cmp eax, esi
je 0x417f70
cmp dword [ebp + 0x20], 8
jb 0x417f53
push dword [ebp + 0xc]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
push esi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], 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 - 0x27c], 8
jb 0x417f87
push dword [ebp - 0x290]
call fcn.0041aa29
add esp, 4
cmp dword [ebp - 0x264], 8
jb 0x41805f
push dword [ebp - 0x278]
jmp 0x418057
mov ecx, 0x2e
cmp cx, ax
jne 0x417fc1
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp + 0xc]
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_
jmp 0x418064
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
mov eax, dword [ebp - 0x238]
cmovae ecx, dword [ebp - 0x248]
movzx eax, word [ecx + eax*2 - 2]
cmp si, ax
je 0x417ff7
push 1
push 0x431fe0
lea ecx, [ebp - 0x248]
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_
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0040faa0
mov esi, eax
add esp, 0xc
lea eax, [ebp + 0xc]
cmp eax, esi
je 0x418048
cmp dword [ebp + 0x20], 8
jb 0x41802b
push dword [ebp + 0xc]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
push esi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], 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 - 0x27c], 8
jb 0x41805f
push dword [ebp - 0x290]
call fcn.0041aa29
add esp, 4
mov esi, 0x5c
cmp dword [ebp - 0x21c], 8
jb 0x41807b
push dword [ebp - 0x230]
call fcn.0041aa29
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 1
jb 0x4180b3
push dword [ebp - 0x248]
call fcn.0041aa29
add esp, 4
cmp dword [ebp + 0x24], 0
je 0x4180dd
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
cmovae ecx, dword [ebp + 0xc]
cmp si, word [ecx + eax*2 - 2]
je 0x4180dd
push 1
push 0x431fe0
lea ecx, [ebp + 0xc]
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_
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
mov ecx, dword [ebp + 0x20]
cmp ecx, 8
jae 0x418113
mov eax, dword [ebp + 0x1c]
inc eax
je 0x41811f
add eax, eax
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.0041adc0
mov ecx, dword [ebp + 0x20]
add esp, 0xc
jmp 0x41811f
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x10], eax
mov eax, 7
mov dword [ebx + 0x14], ecx
xor ecx, ecx
cmp dword [ebp - 0x24c], 8
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], cx
jb 0x418157
push dword [ebp - 0x260]
call fcn.0041aa29
mov eax, dword [ebp + 0x20]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], cx
cmp eax, 8
jb 0x418184
push dword [ebp + 0xc]
call fcn.0041aa29
add esp, 4
mov eax, ebx
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.0041b486
mov esp, ebp
pop ebp
ret