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

Disassembly:
mov eax, dword [0x79ff40]
sub esp, 0x10
mov ecx, dword [eax + 0x84]
push ebx
push ebp
xor ebp, ebp
mov dword [0x79ff28], ecx
mov cl, byte [eax + 0x43]
inc ebp
xor ebx, ebx
and ecx, ebp
cmp dword [0x79ff4c], ebx
push esi
push edi
mov dword [0x7a07a0], ecx
jne 0x404461
push dword [0x40929c]
call fcn.004064d2
test eax, eax
jne 0x40443a
mov eax, dword [0x79ff40]
cmp dword [eax + 0x48], ebx
je 0x40443a
mov esi, 0x79f320
push esi
push dword [eax + 0x4c]
call fcn.00403a13
push eax
mov eax, dword [0x79ff40]
push dword [eax + 0x48]
call fcn.00403a13
push eax
mov eax, dword [0x79ff40]
push dword [eax + 0x44]
call fcn.004067e9
mov al, byte [0x79f320]
cmp al, bl
je 0x40443a
cmp al, 0x22
jne 0x4043f4
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov esi, eax
jmp 0x4043ec
cmp cl, 0x22
je 0x4043f2
push eax
call edi
mov cl, byte [eax]
cmp cl, bl
jne 0x4043e4
mov byte [eax], bl
push esi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x40442e
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40442e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404422
test al, 0x10
jne 0x40442e
push esi
call fcn.0040646b
cmp eax, esi
jb 0x40442e
mov byte [eax], bl
push esi
push dword [0x40929c]
call sub.KERNEL32.dll_lstrcpyA
push dword [0x40929c]
call fcn.004064d2
test eax, eax
mov eax, dword [0x79ff40]
jne 0x404461
push dword [eax + 0x74]
push dword [0x40929c]
call fcn.0040684d
mov eax, dword [0x79ff40]
mov ecx, dword [eax]
mov dword [0x7972f0], ecx
mov eax, dword [eax + 0xc]
add eax, dword [0x7a0790]
mov dword [0x79ff2c], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push dword [0x4092a8]
call fcn.0040686f
call fcn.00404670
mov eax, dword [0x79ff40]
cmp byte [eax + 0x42], bl
jne 0x404619
push 0x8040
push ebx
push ebx
push ebp
push 0x67
push dword [0x798f00]
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [0x79ff40]
mov ecx, eax
xor eax, eax
mov dword [0x79ff58], ecx
mov dword [0x797270], eax
cmp dword [edx + 0x14], 0xffffffff
je 0x404575
mov eax, dword [0x798f00]
mov esi, 0x409278
push 0x7972c0
mov dword [0x7972c4], 0x401c2e
mov dword [0x7972d0], eax
mov dword [0x7972d4], ecx
mov dword [0x7972e4], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x404666
mov eax, dword [0x79ff40]
push ebx
mov ecx, dword [eax + 0x14]
mov dword [0x7a07b4], ecx
mov ecx, dword [eax + 0x18]
mov dword [0x7a07b8], ecx
mov eax, dword [eax + 0x1c]
mov dword [0x7a07b0], eax
lea eax, [esp + 0x14]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
push dword [0x798f00]
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 [0x797270], eax
mov dword [0x7a0788], eax
mov eax, dword [0x79ff40]
push ebx
push dword [eax + 0x2c]
call fcn.00401e58
test eax, eax
je 0x404593
mov eax, ebp
jmp 0x404668
call fcn.00404670
push 5
mov dword [0x7a0788], ebx
push dword [0x797270]
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 0x4045ca
push edi
mov word [0x409202], 0x3233
call esi
mov ebp, dword [sym.imp.USER32.dll_GetClassInfoA]
mov edi, 0x797284
mov esi, 0x40920c
push edi
push esi
push ebx
call ebp
test eax, eax
jne 0x404602
push edi
push esi
push ebx
mov byte [0x409214], bl
call ebp
push edi
mov dword [0x7972a8], esi
mov byte [0x409214], 0x32
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebx
push 0x404714
push ebx
push 0x69
push dword [0x798f00]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x404668
push ebx
push dword [eax + 0x2c]
call fcn.00401e58
test eax, eax
jne 0x40458c
call fcn.00404670
push ebx
call fcn.00405e4e
test eax, eax
je 0x404658
cmp dword [0x79ff34], ebx
jne 0x40458c
mov eax, dword [0x79ff40]
push ebx
push dword [eax + 0x34]
call fcn.00401e58
jmp 0x40458c
mov eax, dword [0x79ff40]
push ebx
push dword [eax + 0x30]
call fcn.00401e58
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret