Function at 0x1000cc20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push esi
mov dword [ebp - 0x60], ecx
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_CStdioFile::CStdioFile
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_2
push 1
lea eax, [ebp - 0x180]
push 0x1a
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp eax, edi
jl 0x1000ccc2
lea ecx, [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x14]
call fcn.10032dca
lea edx, [ebp - 0x14]
push str.EoRezoBholog_bho.txt
lea eax, [ebp - 0x20]
mov bl, 2
push edx
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
jmp 0x1000cccf
push 0x100547fc
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov ecx, dword [ebp - 0x1c]
push edi
push 0x4000
push ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CStdioFile::Open
mov esi, eax
mov dword [ebp - 4], 1
call sub.MFC42.DLL_AfxTryCleanup
cmp esi, edi
je 0x1000cfc8
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CFile::GetLength
test eax, eax
je 0x1000cfc8
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
push 0xa
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CMapStringToString::CMapStringToString
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x5c]
push edx
mov byte [ebp - 4], 8
mov dword [ebp - 0x14], edi
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x1000ce34
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
mov bl, 9
push 0x100547f8
lea ecx, [ebp - 0x20]
call fcn.10032dca
push 0
push 0x100547f4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x1000cdaa
inc eax
lea ecx, [ebp - 0x18]
push eax
push 0x100547f4
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x1000cdaa
inc eax
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
push ecx
push edx
lea ecx, [ebp - 0x7c]
call sub.MFC42.DLL_CMapStringToString::Lookup
test eax, eax
je 0x1000cdfa
mov eax, dword [ebp - 0x20]
push eax
call edi
mov esi, eax
lea ecx, [ebp - 0x20]
inc esi
push esi
push 0x100541f4
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
add esp, 0x10
lea ecx, [ebp - 0x7c]
push edx
push eax
call sub.MFC42.DLL_CMapStringToString::operator__
mov ecx, eax
call sub.MFC42.DLL_CString::operator_2
cmp esi, dword [ebp - 0x14]
jbe 0x1000ce12
mov dword [ebp - 0x14], esi
jmp 0x1000ce12
mov ecx, dword [ebp - 0x18]
push 0x100547f0
push ecx
lea ecx, [ebp - 0x7c]
call sub.MFC42.DLL_CMapStringToString::operator__
mov ecx, eax
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x5c]
push edx
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x1000cd4c
jmp 0x1000ce3a
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
xor esi, esi
mov dword [ebp - 0x44], 0x1003bc80
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0xa
mov eax, dword [ebp - 0x70]
mov byte [ebp - 4], 0xb
neg eax
sbb eax, eax
test eax, eax
mov dword [ebp - 0x48], eax
je 0x1000cf03
mov bl, 0xc
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x48]
push ecx
push edx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CMapStringToString::GetNextAssoc
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 4
cmp eax, esi
push ecx
mov ecx, esp
jb 0x1000cecd
lea edx, [ebp - 0x14]
mov dword [ebp - 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x44]
call fcn.1000d370
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 4
mov esi, eax
jmp 0x1000cee1
lea edx, [ebp - 0x14]
mov dword [ebp - 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x44]
call fcn.1000d440
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x1000ce71
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jbe 0x1000cf50
cmp edi, 0xf
je 0x1000cf50
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x60]
push eax
push ebx
mov edx, dword [ecx + 0x80]
push 0x180
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x38]
inc edi
cmp edi, eax
jb 0x1000cf11
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CStdioFile::Close
mov dword [ebp - 0x44], 0x1003bc80
mov esi, dword [ebp - 0x40]
mov byte [ebp - 4], 0xe
cmp esi, ebx
je 0x1000cf7b
lea eax, [esi + 8]
push 1
push eax
call sub.MFC42.DLL_DestructElements
mov esi, dword [esi]
cmp esi, ebx
jne 0x1000cf6a
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
call sub.MFC42.DLL_CPlex::FreeDataChain
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x44], 0x1003aa88
mov byte [ebp - 4], 7
call fcn.10033112
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
jmp 0x1000cfc8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.1003310c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret