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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [0x42f0cc]
push 2
pop ebp
push ebp
call fcn.0040603c
xor ebx, ebx
test eax, eax
je 0x4053a5
call eax
movzx eax, ax
push eax
push 0x436000
call fcn.00405d5a
jmp 0x4053f4
push ebx
mov esi, 0x429508
mov word [0x436000], 0x7830
push esi
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov byte [0x436002], bl
call fcn.004060cf
cmp byte [0x429508], bl
jne 0x4053e9
push ebx
push esi
push 0x4084b6
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.004060cf
push esi
push 0x436000
call sub.KERNEL32.dll_lstrcatA
call fcn.00405299
mov eax, dword [0x42f0c8]
and eax, 0x20
mov dword [0x42f19c], 0x10000
push 0x435400
mov dword [0x42f180], eax
call fcn.00405d73
test eax, eax
jne 0x4054ae
mov edx, dword [edi + 0x48]
test edx, edx
je 0x4054ae
mov ecx, dword [0x42f0f8]
mov esi, 0x42e060
mov eax, dword [edi + 0x4c]
push ebx
push esi
add eax, ecx
push eax
lea eax, [edx + ecx]
push eax
push dword [edi + 0x44]
call fcn.004060cf
mov al, byte [0x42e060]
test al, al
je 0x4054ae
cmp al, 0x22
jne 0x405468
push 0x22
mov esi, 0x42e061
push esi
call fcn.00405d36
mov byte [eax], bl
push esi
call sub.KERNEL32.dll_lstrlenA
add eax, 0xfffffffc
add eax, esi
cmp eax, esi
jbe 0x40549d
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40549d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405497
test al, 0x10
jne 0x40549d
push esi
call fcn.004063b3
push esi
call fcn.00405c98
push eax
push 0x435400
call fcn.0040624f
push 0x435400
call fcn.00405d73
test eax, eax
jne 0x4054cc
push dword [edi + 0x118]
push 0x435400
call fcn.004057d7
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x42e8b4]
call dword [sym.imp.USER32.dll_LoadImageA]
mov ecx, eax
mov esi, 0x42e860
mov dword [0x42e8a4], ecx
cmp dword [edi + 0x50], 0xffffffff
mov edi, dword [sym.imp.USER32.dll_RegisterClassA]
je 0x405579
mov eax, dword [0x42e8b4]
push esi
mov dword [0x42e864], 0x401000
mov dword [0x42e870], eax
mov dword [0x42e874], ecx
mov dword [0x42e884], 0x408520
call edi
test ax, ax
je 0x40564a
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push ebx
push dword [0x42e8b4]
push ebx
push ebx
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0x80000000
push ebx
push 0x408520
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x42a510], eax
push ebx
call fcn.00401434
test eax, eax
je 0x40558a
mov eax, ebp
jmp 0x40564c
call fcn.00405299
cmp dword [0x42f1a0], ebx
jne 0x405622
push 5
push dword [0x42a510]
call dword [sym.imp.USER32.dll_ShowWindow]
push str.RichEd20
call fcn.00405a46
test eax, eax
jne 0x4055c1
push str.RichEd32
call fcn.00405a46
push esi
mov esi, dword [sym.imp.USER32.dll_GetClassInfoA]
push 0x408500
push ebx
call esi
test eax, eax
jne 0x4055ef
mov ebp, 0x42e860
push ebp
push str.RichEdit
push ebx
call esi
push ebp
mov dword [0x42e884], 0x408500
call edi
mov eax, dword [0x42e8a0]
push ebx
push 0x404962
add eax, 0x69
push ebx
movzx eax, ax
push eax
push dword [0x42e8b4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.00401434
push 1
call fcn.004037ae
mov eax, esi
jmp 0x40564c
push ebx
call fcn.0040517a
test eax, eax
je 0x405643
cmp dword [0x42e890], ebx
jne 0x405583
push ebp
call fcn.00401434
jmp 0x405583
push 1
call fcn.00401434
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret