Function at 0x405444
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [0x4705bc]
push esi
push edi
push 6
call fcn.00405beb
xor edi, edi
cmp eax, edi
je 0x405472
call eax
movzx eax, ax
push eax
push 0x4d10c0
call fcn.00405a2d
jmp 0x4054cc
push edi
mov esi, 0x446228
push esi
push edi
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov word [0x4d10c0], 0x30
mov word [0x4d10c2], 0x78
mov word [0x4d10c4], di
call fcn.004059b3
cmp word [0x446228], di
jne 0x4054c1
push edi
push esi
push 0x408734
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.004059b3
push esi
push 0x4d10c0
call sub.KERNEL32.dll_lstrcatW
call fcn.00403a71
mov eax, dword [0x470608]
and eax, 0x20
push 0x4c50a8
mov dword [0x470660], eax
call fcn.00406063
test eax, eax
jne 0x405582
mov ecx, dword [ebx + 0x48]
cmp ecx, edi
je 0x405582
mov eax, dword [0x4705d8]
mov edx, dword [ebx + 0x4c]
push edi
mov esi, 0x460520
push esi
lea edx, [eax + edx*2]
push edx
lea eax, [eax + ecx*2]
push eax
push dword [ebx + 0x44]
call fcn.004059b3
mov ax, word [0x460520]
cmp ax, di
je 0x405582
cmp ax, 0x22
jne 0x40553d
mov eax, 0x460522
push 0x22
push eax
mov esi, eax
call fcn.004057e5
mov word [eax], di
push esi
call sub.KERNEL32.dll_lstrlenW
lea eax, [esi + eax*2 - 8]
cmp eax, esi
jbe 0x405571
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405571
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40556b
test al, 0x10
jne 0x405571
push esi
call fcn.00406037
push esi
call fcn.00406008
push eax
push 0x4c50a8
call fcn.00405ae6
mov esi, 0x4c50a8
push esi
call fcn.00406063
test eax, eax
jne 0x40559d
push dword [ebx + 0x118]
push esi
call fcn.004060eb
push 0x8040
push edi
push edi
push 1
push 0x67
push dword [0x4705b8]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x468570], eax
cmp dword [ebx + 0x50], 0xffffffff
mov esi, 0x468540
je 0x405652
mov ecx, dword [0x408694]
mov dword [ebp - 8], ecx
mov ecx, dword [0x408698]
mov dword [ebp - 4], ecx
mov ecx, dword [0x4705b8]
mov dword [0x468554], eax
lea eax, [ebp - 8]
push esi
mov dword [0x468544], 0x401000
mov dword [0x468550], ecx
mov dword [0x468564], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x405719
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push edi
push dword [0x4705b8]
push edi
push edi
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push dword [ebp - 0x18]
push 0x80000000
push edi
push eax
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x43a208], eax
push edi
call fcn.00401414
test eax, eax
je 0x405664
push 2
pop eax
jmp 0x40571b
call fcn.00403a71
cmp dword [0x470680], edi
jne 0x4056f0
push 5
push dword [0x43a208]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RichEd20
call ebx
test eax, eax
jne 0x405697
push str.RichEd32
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetClassInfoW]
push esi
push str.RichEdit20A
push edi
call ebx
test eax, eax
jne 0x4056c4
push esi
push str.RichEdit
push edi
call ebx
push esi
mov dword [0x468564], 0x408654
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x46857c]
push edi
push 0x404f91
add eax, 0x69
movzx eax, ax
push edi
push eax
push dword [0x4705b8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.00401414
mov eax, esi
jmp 0x40571b
push edi
call fcn.00404b9a
test eax, eax
je 0x405712
cmp dword [0x468574], edi
jne 0x40565c
push 2
call fcn.00401414
jmp 0x40565c
push 1
call fcn.00401414
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret