Function at 0x4014c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c97b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x540
push ebx
push esi
mov dword [ebp - 0x14], ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x14b]
mov byte [ebp - 0x14c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov cl, byte [ebp - 0x15]
push 0
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [ebp - 0x14c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x28]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40156a
mov edi, dword [ebp - 0x24]
mov ecx, ebx
mov edx, ecx
lea esi, [ebp - 0x14c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edi, 0x413054
or ecx, 0xffffffff
mov dword [ebp - 4], 0
mov edx, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x413054
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int__unsigned_int_const]
test eax, eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
jl 0x40168e
lea ecx, [ebp - 0x38]
push 0x410cf0
push ecx
mov dword [ebp - 0x38], 0xe1
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [ebp - 0x2c]
inc ecx
mov eax, dword [edx]
lea edx, [ebp - 0x48]
push eax
push ecx
push edx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 3
mov edx, dword [ecx]
lea ecx, [ebp - 0x28]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov bl, 2
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edi, 0x413050
or ecx, 0xffffffff
mov edx, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x413050
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int__unsigned_int_const]
push eax
lea ecx, [ebp - 0x48]
push 0
push ecx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 4
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push edx
mov ecx, esi
call fcn.00401960
push 0x41304c
lea eax, [ebp - 0x28]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, esi
call fcn.00401ac0
mov eax, 0x40168e
ret
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [0x413524], ecx
mov ecx, 0xff
lea edi, [ebp - 0x54b]
mov byte [ebp - 0x54c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea edx, [ebp - 0x54c]
push 0x1a
push edx
push 0
mov dword [ebp - 4], 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x54c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, 0x413450
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40171a
mov edi, dword [0x413454]
mov ecx, ebx
mov eax, ecx
lea esi, [ebp - 0x54c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x413454]
mov dword [0x413458], ebx
mov byte [ebx + ecx], 0
mov edi, str._.
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
repne scasb al, byte es:[edi]
mov eax, dword [edx]
mov edx, dword [0x413458]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x401745
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x401796
mov ecx, dword [0x413458]
push 0
lea ebx, [esi + ecx]
mov ecx, 0x413450
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x401796
mov edx, dword [0x413458]
mov eax, dword [0x413454]
mov ecx, esi
mov esi, str._.
lea edi, [edx + eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x413454]
mov dword [0x413458], ebx
mov byte [ebx + eax], 0
mov edi, str.TekcyLeko
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [0x413458]
sub edx, ecx
cmp edx, esi
ja 0x4017c1
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x401813
mov eax, dword [0x413458]
push 0
mov ecx, 0x413450
lea ebx, [esi + eax]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x401813
mov ecx, dword [0x413454]
mov edx, dword [0x413458]
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str.TekcyLeko
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x413454]
mov dword [0x413458], ebx
mov byte [ebx + ecx], 0
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 6
test esi, esi
je 0x401863
lea edx, [ebp - 0x30]
push 0x410cf0
push edx
mov dword [ebp - 0x30], 0x15f
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
push eax
push 0x84
lea esi, [eax + 0x60]
mov ecx, esi
call sub.MFC42.DLL_CDialog::Create
push 0x37
push 0x19
mov ecx, esi
call fcn.00402ad0
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
mov eax, 0x401860
ret
lea eax, [esi + 0xc4]
push str.NGYJOFS
push eax
mov dword [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x4018d3
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::CenterWindow
push 0x20
push 0x40000
push 0x80
mov ecx, esi
call sub.MFC42.DLL_CWnd::ModifyStyleEx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40194f
mov al, byte [ecx - 1]
test al, al
je 0x401945
cmp al, 0xff
je 0x401945
dec al
mov byte [ecx - 1], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x34]
push 0x410cf0
push ecx
mov dword [ebp - 0x34], 0xd
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x14]
push 1
push 0
push 0
push 0
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::MoveWindow
push 0
push 0x80
push 0x40000
mov ecx, esi
call sub.MFC42.DLL_CWnd::ModifyStyleEx
push 0
mov ecx, esi
call fcn.00401d10
push 0
push 0x3ee
mov ecx, esi
mov dword [esi + 0xc0], 1
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
lea ecx, [esi + 0x60]
call fcn.00402af0
mov eax, 0x40189f
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret