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 [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4fb114]
xor edx, edx
mov ecx, dword [0x4faee0]
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 [0x4fb114]
mov eax, dword [edi + 0x590]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4025a3
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.00459030
test eax, eax
je 0x4023c0
cmp dword [esi + 0x24], 0
lea edi, [esi + 0x24]
jne 0x4023be
mov eax, dword [0x50842c]
test eax, eax
jne 0x4023a3
mov ecx, dword [0x5083fc]
push 0xffffffffffffffff
push str.keyset
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [0x50842c], 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 [0x4faee0]
push ebx
push dword [ebp - 0x810]
mov eax, dword [ecx]
push edi
push dword [esi + 0x10]
call dword [eax + 0xc]
jmp 0x402590
mov ecx, 3
call fcn.00459090
test eax, eax
je 0x4024d0
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 0x4da39c
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 0x402493
mov eax, dword [0x50839c]
cmp dword [eax + 0xc], 0
je 0x402590
lea eax, [ebp - 0x20c]
mov ecx, 0xb1d
push eax
call fcn.004909b0
push eax
lea eax, [ebp - 0x80c]
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x80c]
call fcn.0044aaf0
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.00490810
add esp, 4
test eax, eax
je 0x402590
mov ecx, dword [0x4faee0]
push ebx
push dword [ebp - 0x818]
push dword [esi + 0x24]
mov eax, dword [ecx]
push dword [esi + 0x10]
call dword [eax + 0xc]
jmp 0x402590
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], 0x4da408
mov dword [ebp - 0x81c], 0x4da410
cmp eax, 1
jg 0x402527
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 0x40257a
mov eax, dword [0x50839c]
cmp dword [eax + 0xc], 0
jne 0x402462
jmp 0x402590
mov ecx, dword [0x4faee0]
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 0x4025a3
mov edi, dword [0x4fb114]
jmp 0x402350
mov ecx, dword [0x4faee0]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [0x4fb114]
mov eax, dword [eax + 0x234]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
mov dword [ebp - 0x810], esi
test esi, esi
je 0x402635
nop dword [eax]
mov edi, dword [esi + 0x2c]
test edi, edi
je 0x402628
mov ecx, 0x271c
call fcn.00459100
mov dword [edi + 8], eax
xor ebx, ebx
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 0x402619
nop dword [eax]
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x402610
mov esi, dword [ebp - 0x810]
inc ebx
mov dword [edx + 4], eax
cmp ebx, 7
jl 0x4025e6
mov esi, dword [esi + 4]
mov dword [ebp - 0x810], esi
test esi, esi
jne 0x4025d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004954a2
mov esp, ebp
pop ebp
ret