Function at 0x4043be
Capabilities:
Check if file exists
Get file attributes
Identify system language via api

Disassembly:
mov eax, dword [0x79ff20]
sub esp, 0x10
mov ecx, dword [eax + 0x84]
push ebx
push ebp
push esi
push edi
push 1
mov dword [0x79ff08], ecx
mov cl, byte [eax + 0x43]
pop ebp
xor ebx, ebx
and ecx, ebp
cmp dword [0x79ff2c], ebx
mov dword [0x7a0780], ecx
jne 0x4044d4
push dword [0x4092a4]
call fcn.0040658f
test eax, eax
jne 0x4044ad
mov eax, dword [0x79ff20]
cmp dword [eax + 0x48], ebx
je 0x4044ad
mov esi, 0x79f300
push esi
push dword [eax + 0x4c]
call fcn.00403a7d
push eax
mov eax, dword [0x79ff20]
push dword [eax + 0x48]
call fcn.00403a7d
push eax
mov eax, dword [0x79ff20]
push dword [eax + 0x44]
call fcn.004068aa
mov al, byte [0x79f300]
cmp al, bl
je 0x4044ad
cmp al, 0x22
jne 0x404467
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov esi, eax
mov cl, byte [eax]
cmp cl, bl
je 0x404465
cmp cl, 0x22
je 0x404465
push eax
call edi
jmp 0x404455
mov byte [eax], bl
push esi
call fcn.004069e6
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x4044a1
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4044a1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404495
test al, 0x10
jne 0x4044a1
push esi
call fcn.00406528
cmp eax, esi
jb 0x4044a1
mov byte [eax], bl
push esi
push dword [0x4092a4]
call fcn.004069d5
push dword [0x4092a4]
call fcn.0040658f
test eax, eax
mov eax, dword [0x79ff20]
jne 0x4044d4
push dword [eax + 0x74]
push dword [0x4092a4]
call fcn.0040690e
mov eax, dword [0x79ff20]
mov ecx, dword [eax]
mov dword [0x7972f0], ecx
mov eax, dword [eax + 0xc]
add eax, dword [0x7a0770]
mov dword [0x79ff0c], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push dword [0x4092b0]
call fcn.00406930
call fcn.004046e3
mov eax, dword [0x79ff20]
cmp byte [eax + 0x42], bl
jne 0x40468c
push CoCreateInstance
push ebx
push ebx
push ebp
push 0x67
push dword [0x798efc]
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [0x79ff20]
mov ecx, eax
xor eax, eax
mov dword [0x79ff38], ecx
mov dword [0x79726c], eax
cmp dword [edx + 0x14], 0xffffffff
je 0x4045e8
mov eax, dword [0x798efc]
mov esi, 0x409280
push 0x7972c0
mov dword [0x7972c4], 0x401c5e
mov dword [0x7972d0], eax
mov dword [0x7972d4], ecx
mov dword [0x7972e4], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x4046d9
mov eax, dword [0x79ff20]
push ebx
mov ecx, dword [eax + 0x14]
mov dword [0x7a0794], ecx
mov ecx, dword [eax + 0x18]
mov dword [0x7a0798], ecx
mov eax, dword [eax + 0x1c]
mov dword [0x7a0790], eax
lea eax, [esp + 0x14]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
push dword [0x798efc]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
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 esi
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x79726c], eax
mov dword [0x7a0768], eax
mov eax, dword [0x79ff20]
push ebx
push dword [eax + 0x2c]
call fcn.00401e98
test eax, eax
je 0x404606
mov eax, ebp
jmp 0x4046db
call fcn.004046e3
push 5
mov dword [0x7a0768], ebx
push dword [0x79726c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, str.RichEd20.dll
push edi
call esi
test eax, eax
jne 0x40463d
push edi
mov word [0x409206], 0x3233
call esi
mov ebp, dword [sym.imp.USER32.dll_GetClassInfoA]
mov edi, 0x797280
mov esi, 0x409210
push edi
push esi
push ebx
call ebp
test eax, eax
jne 0x404675
push edi
push esi
push ebx
mov byte [0x409218], bl
call ebp
push edi
mov dword [0x7972a4], esi
mov byte [0x409218], 0x32
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebx
push 0x404788
push ebx
push 0x69
push dword [0x798efc]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x4046db
push ebx
push dword [eax + 0x2c]
call fcn.00401e98
test eax, eax
jne 0x4045ff
call fcn.004046e3
push ebx
call fcn.00405eeb
test eax, eax
je 0x4046cb
cmp dword [0x79ff14], ebx
jne 0x4045ff
mov eax, dword [0x79ff20]
push ebx
push dword [eax + 0x34]
call fcn.00401e98
jmp 0x4045ff
mov eax, dword [0x79ff20]
push ebx
push dword [eax + 0x30]
call fcn.00401e98
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret