Function at 0x4bdb8b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc0
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x3ba]
push ebx
push eax
mov word [ebp - 0x3bc], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3bc]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
mov esi, 0x104
jge 0x4bdc00
push esi
lea eax, [ebp - 0x3bc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x520da8
push esi
lea eax, [ebp - 0x3bc]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
pop ecx
pop ecx
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
push 0x5255c8
lea eax, [ebp - 0x3bc]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
push 1
push 0x40
push 1
lea eax, [ebp - 0x3bc]
push eax
lea ecx, [ebp - 0xac]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::constructor_wchar_t_const___int__int_]
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0xac]
mov ecx, dword [eax + 8]
and cl, 6
neg cl
sbb ecx, ecx
not ecx
test eax, ecx
je 0x4bdca4
push 0x7ff
lea eax, [ebp - 0xbbb]
push ebx
push eax
mov byte [ebp - 0xbbc], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x800
lea eax, [ebp - 0xbbc]
push eax
lea ecx, [ebp - 0xac]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::getline_char___int_]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx + 8]
and al, 6
neg al
sbb eax, eax
not eax
test ecx, eax
jne 0x4bdcb9
lea ecx, [ebp - 0xac]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::close_void_]
lea ecx, [ebp - 0xac]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
pop edi
pop esi
pop ebx
leave
ret 4
xor ebx, ebx
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1b0], eax
push ebx
lea eax, [ebp - 0xbbc]
push eax
lea eax, [ebp - 0x1b0]
push eax
call fcn.00429683
push dword [ebp - 0x1b0]
lea eax, [ebp - 8]
call fcn.004014ce
lea eax, [ebp - 0x1ac]
cmp dword [ebp - 0x1b0], eax
je 0x4bdd02
push dword [ebp - 0x1b0]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea ebx, [ebp - 8]
call fcn.0042c0b9
call fcn.0040723b
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
jl 0x4bdeb6
cmp word [eax], 0x5b
jne 0x4bde77
push 0x18
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x4bdd3e
mov edi, eax
call fcn.004bda1d
mov dword [ebp - 0xc], eax
jmp 0x4bdd42
and dword [ebp - 0xc], 0
push 0x5d
xor ecx, ecx
lea esi, [ebp - 8]
call fcn.00429849
mov esi, eax
lea eax, [ebp - 0x18]
xor edx, edx
push eax
lea ecx, [esi - 1]
inc edx
lea eax, [ebp - 8]
call fcn.004297d2
mov edi, dword [ebp - 0xc]
add edi, 4
call fcn.0042a0a0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 8]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 2]
lea eax, [ebp - 0x14]
push eax
lea edx, [esi + 1]
lea eax, [ebp - 8]
call fcn.004297d2
mov ebx, eax
call fcn.0042c0b9
call fcn.0040723b
mov eax, dword [eax]
sub eax, 0x10
call fcn.0042a0e1
mov edi, eax
mov eax, dword [ebp - 0x14]
add edi, 0x10
add eax, 0xfffffff0
mov dword [ebp - 0x10], edi
call fcn.00401239
mov ebx, 0x525614
push ebx
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.00429fa6
cmp eax, 0xffffffff
je 0x4bde11
mov edi, dword [edi - 0xc]
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.00407292
mov ebx, eax
call fcn.0042c0b9
call fcn.0040723b
mov esi, dword [ebp - 0xc]
lea edi, [esi + 0xc]
call fcn.0042a0a0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401239
push 0x52561c
jmp 0x4bde44
push 0x525628
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.00429fa6
mov esi, dword [ebp - 0xc]
cmp eax, 0xffffffff
lea edi, [esi + 0xc]
lea eax, [ebp - 0x10]
je 0x4bde3a
call fcn.0042a0a0
push 0x525630
jmp 0x4bde44
call fcn.0042a0a0
push 0x525638
add esi, 8
push esi
call fcn.0040127c
mov eax, dword [ebp - 0xc]
push 0x525640
add eax, 0x10
push eax
call fcn.0040127c
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0xc]
call fcn.004be025
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401239
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401239
push 0x800
lea eax, [ebp - 0xbbc]
push eax
lea ecx, [ebp - 0xac]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::getline_char___int_]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx + 8]
and al, 6
neg al
sbb eax, eax
not eax
test ecx, eax
jne 0x4bdcb7
jmp 0x4bdc98
push 0x80070057
call fcn.004016a9
int3