Function at 0x4022f0
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4f4008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4fc0fc]
xor edx, edx
mov ecx, dword [0x4fbe80]
push ebx
push esi
mov eax, dword [eax + 0x590]
xor ebx, ebx
push edi
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40232d
mov eax, dword [eax + 4]
inc edx
test eax, eax
jne 0x402325
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov edi, dword [0x4fc0fc]
mov eax, dword [edi + 0x590]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x40259d
nop dword [eax]
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x810], eax
test eax, eax
je 0x4023db
cmp dword [esi + 0x14], 0
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0x814], edi
jne 0x4023c0
mov ecx, 3
call fcn.00459a00
test eax, eax
je 0x4023c0
cmp dword [esi + 0x24], 0
lea edi, [esi + 0x24]
jne 0x4023be
mov eax, dword [0x50940c]
test eax, eax
jne 0x4023a3
mov ecx, dword [0x5093dc]
push 0xffffffffffffffff
push str.keyset
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [0x50940c], eax
mov edx, dword [eax]
lea ecx, [ebp - 0x824]
push ecx
push edi
push dword [ebp - 0x810]
mov ecx, eax
push dword [ebp - 0x814]
call dword [edx + 4]
mov edi, dword [edi]
mov ecx, dword [0x4fbe80]
push ebx
push dword [ebp - 0x810]
mov eax, dword [ecx]
push edi
push dword [esi + 0x10]
call dword [eax + 0xc]
jmp 0x40258a
mov ecx, 3
call fcn.00459a60
test eax, eax
je 0x4024ca
lea eax, [edi + 0x9a0]
push eax
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [esi + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x40c]
push str._04d
push eax
call edi
push 0x4dac44
lea eax, [ebp - 0x40c]
push eax
push str.Fonts
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x20c]
push str._s_s_s._s
push eax
call edi
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40248d
mov eax, dword [0x50937c]
cmp dword [eax + 0xc], 0
je 0x40258a
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x80c]
push 0x4d6770
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x80c]
call fcn.0044b320
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 0x818]
push eax
lea edx, [esi + 0x24]
lea ecx, [ebp - 0x20c]
call fcn.00491240
add esp, 4
test eax, eax
je 0x40258a
mov ecx, dword [0x4fbe80]
push ebx
push dword [ebp - 0x818]
push dword [esi + 0x24]
mov eax, dword [ecx]
push dword [esi + 0x10]
call dword [eax + 0xc]
jmp 0x40258a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x814], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x810], eax
lea eax, [edi + 0x9a0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea eax, [ebp - 0x614]
push eax
call edi
mov eax, dword [ebp - 0x814]
mov dword [ebp - 0x820], 0x4dac98
mov dword [ebp - 0x81c], 0x4daca0
cmp eax, 1
jg 0x402521
push dword [ebp + eax*4 - 0x820]
lea eax, [ebp - 0x40c]
push eax
call edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x810]
lea eax, [ebp - 0x614]
push str.Fonts
push eax
lea eax, [ebp - 0x20c]
push str._s_s_s._s
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402574
mov eax, dword [0x50937c]
cmp dword [eax + 0xc], 0
jne 0x402462
jmp 0x40258a
mov ecx, dword [0x4fbe80]
lea edx, [ebp - 0x20c]
push ebx
push edx
push dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [esi + 4]
inc ebx
test esi, esi
je 0x40259d
mov edi, dword [0x4fc0fc]
jmp 0x402350
mov ecx, dword [0x4fbe80]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [0x4fc0fc]
mov eax, dword [eax + 0x234]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
mov dword [ebp - 0x810], esi
test esi, esi
je 0x40262b
mov edi, dword [esi + 0x2c]
test edi, edi
je 0x40261e
mov ecx, 0x271c
call fcn.00459ad0
mov dword [edi + 8], eax
xor ebx, ebx
nop dword [eax]
mov edi, dword [esi + 0x20]
mov esi, dword [esi + 0x2c]
sub edi, ebx
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax]
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x40260f
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x402606
mov esi, dword [ebp - 0x810]
inc ebx
mov dword [edx + 4], eax
cmp ebx, 7
jl 0x4025e0
mov esi, dword [esi + 4]
mov dword [ebp - 0x810], esi
test esi, esi
jne 0x4025c3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495852
mov esp, ebp
pop ebp
ret