Function at 0x4be820
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e67a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, dword [0x52d140]
push ebx
mov dword [esp + 0xc], ecx
push esi
push edi
mov ecx, 0x52d140
mov dword [esp + 0x30], 0x52d140
call dword [eax + 4]
mov eax, dword [0x526620]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x94], edi
mov ebx, 1
jne 0x4be8c4
cmp dword [0x52661c], edi
jne 0x4be8c4
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
mov byte [esp + 0x94], bl
je 0x4be899
push edi
mov ecx, eax
call fcn.00403720
jmp 0x4be89b
xor eax, eax
mov ecx, dword [0x5177d4]
mov byte [esp + 0x94], 0
push ecx
push 0x4036f0
mov ecx, 0x52b648
mov dword [0x52661c], eax
call fcn.00402160
mov dword [0x526620], ebx
mov esi, dword [0x52661c]
mov edx, dword [0x52d140]
mov ecx, 0x52d140
mov dword [esp + 0x18], esi
mov dword [esp + 0x94], 0xffffffff
call dword [edx + 8]
cmp esi, edi
mov dword [esp + 0x34], esi
je 0x4be8f5
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x94], 2
call sub.MFC42.DLL_CString::CString_3
cmp esi, edi
mov byte [esp + 0x94], 3
je 0x4be98a
mov dword [esp + 0xc], edi
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push edx
push esi
mov byte [esp + 0x9c], 4
call dword [ecx + 0x2c]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 5
call fcn.004ceb40
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 4
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
mov byte [esp + 0x94], 3
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x9c]
push edi
lea ecx, [esp + 0x20]
push 0x51a348
push ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0xffff0003
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x6c], 0x27
call fcn.00420140
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 6
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [esp + 0x1c]
push edi
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x9c], 7
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, edi
je 0x4bec0e
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
push 0x10
lea ecx, [esp + 0x44]
call dword [eax + 0x40]
test eax, eax
jne 0x4bec01
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4bec01
mov edx, dword [esp + 0x40]
push 2
lea ecx, [esp + 0x44]
call dword [edx + 0x40]
test eax, eax
jne 0x4bec01
lea eax, [esp + 0x10]
inc edi
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x34], edi
call sub.MFC42.DLL_CFileFind::GetFileName
lea ecx, [esp + 0x24]
push 4
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 8
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x51a340
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4bebec
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 9
call fcn.004ceb40
lea ecx, [esp + 0x28]
mov byte [esp + 0x98], 8
call sub.MFC42.DLL_CString::CString
push 0x208
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], eax
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x1c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
xor edi, edi
mov byte [esp + 0x98], 0xa
cmp esi, edi
je 0x4beb5e
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 4]
mov byte [esp + 0x98], 0xb
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 8]
mov byte [esp + 0x98], 0xc
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x98], 0xd
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x98], 0xe
call sub.MFC42.DLL_CString::CString_3
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], vtable.CBitmap.0
mov edi, esi
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x9c], 8
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
mov ebx, dword [esp + 0x18]
push eax
push edi
mov ecx, ebx
mov byte [esp + 0xa0], 0xf
call fcn.004bee30
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x98], 8
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x5c]
neg esi
sbb esi, esi
push ecx
push 0
and esi, edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x1100
push edx
mov dword [esp + 0x98], esi
call edi
mov ecx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4bebe8
mov edx, ebx
push esi
push 9
push 0x110b
mov eax, dword [edx + 0x20]
push eax
call edi
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x98], 7
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4be9fd
pop ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 6
call fcn.004cefba
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 2
call sub.MFC42.DLL_CString::CString
test esi, esi
mov dword [esp + 0x94], 0xffffffff
je 0x4bec56
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov ecx, dword [esp + 0x8c]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 4