Function at 0x4019f0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x8c0
push ebx
push ebp
push esi
lea eax, [esp + 0x3f0]
push edi
push eax
mov dword [esp + 0x3f8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402031
mov ecx, dword [esp + 0x8d8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x58c]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x8d4]
lea ecx, [esp + 0x58c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x58c]
push edx
push eax
call fcn.00403190
add esp, 8
test eax, eax
je 0x402031
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xb0]
mov edx, dword [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, 0x13
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0xcc]
and ecx, 0xffff
push edx
push eax
mov dword [esp + 0xc8], ecx
mov byte [esp + 0xcf], 1
call ebx
mov ecx, dword [esp + 0x34]
mov dl, byte [esp + 0x28]
mov ebp, dword [sym.imp.USER32.dll_GetDC]
and ecx, 0xffff
push 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], ecx
mov byte [esp + 0xb0], dl
call ebp
mov esi, eax
test esi, esi
je 0x402024
lea ecx, [esp + 0x64]
push 0
push ecx
lea edx, [esp + 0xb8]
push section..text
push edx
push esi
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExA]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x401e1b
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x401e1b
mov eax, dword [esp + 0x8ec]
test eax, eax
je 0x402024
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push 0
mov edi, eax
call ebp
mov esi, eax
test esi, esi
jne 0x401b58
lea ecx, [esp + 0x14]
push ecx
call fcn.00403280
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c0
ret
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edi
push esi
call ebp
lea edx, [esp + 0x40]
mov dword [esp + 0x10], eax
push edx
push esi
call fcn.00402f50
add esp, 8
test eax, eax
jne 0x401ba8
lea eax, [esp + 0x14]
push eax
call fcn.00403280
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
push esi
call ebp
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c0
ret
mov edx, dword [esp + 0x10]
push edx
push esi
call ebp
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.004019a0
add esp, 8
test eax, eax
jne 0x401bfb
lea edx, [esp + 0x14]
push edx
call fcn.00403280
add esp, 4
lea eax, [esp + 0x40]
push eax
call fcn.00403280
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c0
ret
mov eax, dword [esp + 0x8e8]
test eax, eax
je 0x401c2a
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call fcn.00402550
add esp, 0x10
test eax, eax
jle 0x401e09
mov edi, dword [esp + 0x8d4]
lea edx, [esp + 0x690]
lea eax, [esp + 0x2f4]
push edx
push eax
push 0
push 0
push edi
mov ebp, 1
call fcn.00403320
mov ecx, dword [esp + 0x8f0]
add esp, 0x14
lea edx, [esp + 0x488]
push ecx
push edx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x2f4]
lea ecx, [esp + 0x488]
push eax
push ecx
call esi
lea edx, [esp + 0x488]
push str..tt2
push edx
call esi
mov eax, dword [esp + 0x8e0]
lea ecx, [esp + 0x1f0]
push eax
push ecx
call ebx
lea edx, [esp + 0xec]
push 0x40ba08
push edx
call ebx
lea eax, [esp + 0xec]
push 0x104
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004013d0
add esp, 0xc
test eax, eax
je 0x401cdd
lea edx, [esp + 0xec]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jg 0x401cea
lea eax, [esp + 0xec]
push edi
push eax
call ebx
xor ebp, ebp
lea ecx, [esp + 0x690]
lea edx, [esp + 0x2f4]
push ecx
push edx
push 0
lea eax, [esp + 0xf8]
push 0
push eax
call fcn.00403320
add esp, 0x14
lea ecx, [esp + 0x2f4]
lea edx, [esp + 0xec]
push ecx
push edx
call ebx
lea eax, [esp + 0x690]
lea ecx, [esp + 0xec]
push eax
push ecx
call esi
lea edx, [esp + 0xec]
lea eax, [esp + 0x1f0]
push edx
push eax
call esi
lea ecx, [esp + 0x488]
push 0
lea edx, [esp + 0x590]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401e09
lea eax, [esp + 0x790]
lea ecx, [esp + 0x1f0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x401dcb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x1f0]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401daf
test al, 1
je 0x401daf
xor eax, 1
push eax
lea eax, [esp + 0x1f4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x404], 2
je 0x401dcb
lea ecx, [esp + 0x1f0]
push 0
push ecx
call fcn.00401660
add esp, 8
lea edx, [esp + 0x1f0]
lea eax, [esp + 0x488]
push edx
push eax
call fcn.00401660
add esp, 8
test ebp, ebp
jne 0x401dfc
lea ecx, [esp + 0xec]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00401070
add esp, 8
mov eax, dword [esp + 0x8e4]
mov dword [eax], 1
lea ecx, [esp + 0x40]
push ecx
call fcn.00403280
add esp, 4
jmp 0x402024
mov edx, dword [esp + 0x8d4]
lea eax, [esp + 0xec]
push edx
push eax
call ebx
lea ecx, [esp + 0xec]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00401180
add esp, 8
test eax, eax
je 0x402024
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401f6b
lea ecx, [esp + 0x690]
lea edx, [esp + 0x2f4]
push ecx
push edx
push 0
lea eax, [esp + 0xf8]
push 0
push eax
call fcn.00403320
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x14
lea ecx, [esp + 0x2f4]
push ecx
call ebp
cmp eax, 8
jge 0x401eac
mov esi, 8
sub esi, eax
lea edx, [esp + 0x2f4]
push 0x4091ac
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
dec esi
jne 0x401e96
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push 0
lea eax, [esp + 0x3c]
push 0x4091a8
push eax
call edi
add esp, 0xc
mov esi, 2
lea ecx, [esp + 0x38]
lea edx, [esp + 0x38]
push ecx
push edx
call ebp
lea ecx, [esp + 0x300]
sub ecx, eax
push ecx
call ebx
lea edx, [esp + 0x2f4]
lea eax, [esp + 0xec]
push edx
push eax
call ebx
lea ecx, [esp + 0x690]
lea edx, [esp + 0xec]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xec]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00401180
add esp, 8
test eax, eax
je 0x401fd8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401f6b
mov eax, esi
lea edx, [esp + 0x38]
and eax, 0xffff
inc esi
push eax
push 0x4091a8
push edx
call edi
add esp, 0xc
mov ax, si
inc esi
cmp ax, 0x4000
jbe 0x401ec8
lea ecx, [esp + 0x14]
push ecx
call fcn.00403280
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c0
ret
mov eax, dword [esp + 0x8e0]
lea ecx, [esp + 0x1f0]
push eax
push ecx
call ebx
lea edx, [esp + 0xec]
lea eax, [esp + 0x1f0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x1f0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401fbc
test al, 1
je 0x401fbc
xor eax, 1
lea edx, [esp + 0x1f0]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x1f0]
push 0
lea ecx, [esp + 0x590]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401ff0
lea edx, [esp + 0x14]
push edx
call fcn.00403280
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c0
ret
lea eax, [esp + 0xec]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00401070
add esp, 8
lea edx, [esp + 0x1f0]
push edx
call dword [sym.imp.GDI32.dll_AddFontResourceA]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [esp + 0x14]
push eax
call fcn.00403280
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c0
ret