Function at 0x40be49
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x420320
call fcn.0041ef90
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push str.AAAA_UC.h
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
xor ebx, ebx
call fcn.0041eb9a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], eax
call sub.MFC42u.DLL_CString::CString
cmp dword [0x45460c], ebx
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
mov dword [ebp - 0x10], ebx
mov edi, 0x400
jle 0x40bf5b
mov eax, dword [ebp - 0x10]
push dword [eax*4 + 0x443808]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jle 0x40bf49
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebp - 0x10]
push dword [eax*4 + 0x443008]
and dword [ebp - 4], 0
push dword [eax*4 + 0x443808]
lea eax, [ebp - 0x14]
push str._s___d__
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
cmp dword [ebp - 0x20], 0xffffffff
je 0x40bf1b
mov eax, dword [ebp - 0x10]
push dword [eax*4 + 0x443008]
lea eax, [eax*4 + 0x443008]
mov eax, dword [ebp - 0x10]
push dword [eax*4 + 0x443808]
push eax
lea eax, [ebp - 0x14]
push str._d___s___d__
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
mov ecx, dword [ebp - 0x10]
cmp dword [0x454208], ecx
jne 0x40bf2b
push 8
pop eax
jmp 0x40bf2d
xor eax, eax
push dword [ebp - 0x14]
add ecx, 0xa
push ecx
or eax, edi
push eax
push dword [ebp - 0x18]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
inc ebx
call sub.MFC42u.DLL_CString::CString
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x45460c]
jl 0x40bea1
push 0x43e908
sar ebx, 1
push 0
inc ebx
push 0x4c60
inc ebx
push ebx
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.USER32.dll_InsertMenuW]
push 0
push 0
push 0xc00
push ebx
call esi
push str.Translate
push 0x3e8
push edi
push ebx
call esi
push str.Load_from_File__Unicode_
push 0x3e9
push edi
push ebx
call esi
mov ebx, 0xe9
push ebx
push dword [0x44183c]
lea eax, [ebp - 0x48]
push eax
call fcn.004185d8
mov esi, eax
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x44183c]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push ebx
mov edi, 0x403
push edi
push dword [0x44183c]
call esi
push 0x102
push dword [ebp - 0x24]
mov ecx, 0x4417f8
push dword [ebp - 0x28]
push dword [ebp - 0x18]
call fcn.0041bc59
push 0
push ebx
push edi
push dword [0x44183c]
mov dword [ebp - 0x20], eax
call esi
mov eax, dword [ebp - 0x20]
xor edi, edi
cmp eax, edi
je 0x40c082
cmp eax, 0xa
jl 0x40c036
cmp eax, 0x32
jg 0x40c036
add eax, 0xfffffff6
mov dword [0x454208], eax
jmp 0x40c053
cmp eax, 0x3e8
jne 0x40c047
push 1
call fcn.004171e1
pop ecx
jmp 0x40c070
cmp eax, 0x3e9
jne 0x40c070
call fcn.00417877
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040a201
push 0x105
push edi
push edi
push dword [esi + 0x1878]
call dword [sym.imp.USER32.dll_RedrawWindow]
push dword [0x454208]
push 0x43cd24
call fcn.004163f9
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4