Function at 0x40b370
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x467d77
mov eax, dword fs:[0]
push eax
mov eax, 0x1d94
call fcn.00454790
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x1d90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48807c]
xor eax, esp
push eax
lea eax, [esp + 0x1da8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1db8]
mov ebp, ecx
push esi
push str.InstallModule___s__n
mov dword [esp + 0x24], ebp
call fcn.004454c0
add esp, 8
lea ecx, [esp + 0x20]
call fcn.0044e720
xor ebx, ebx
mov dword [esp + 0x1db0], ebx
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.SOFTWAREKyocera_Mita]
mov word [esp + eax + 0x1994], cx
add eax, 2
cmp cx, bx
jne 0x40b3e0
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.KcInst32FONTS]
mov word [esp + eax + 0x1b9c], cx
add eax, 2
cmp cx, bx
jne 0x40b400
push 0x82c
call fcn.004534f0
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x1db0], 1
cmp eax, ebx
je 0x40b452
lea ecx, [esp + 0x1994]
push ecx
lea edx, [esp + 0x1ba0]
push edx
push ebx
mov ecx, eax
call fcn.004530e0
mov dword [esp + 0x14], eax
jmp 0x40b456
mov dword [esp + 0x14], ebx
push 0x206
lea ecx, [esp + 0xf72]
xor eax, eax
push ebx
push ecx
mov byte [esp + 0x1dbc], bl
mov word [esp + 0xf78], ax
call fcn.00453450
push 0x4435c
call fcn.004534f0
add esp, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x1db0], 2
cmp eax, ebx
je 0x40b4a7
push ebx
push ebx
push esi
mov ecx, eax
call fcn.0040a7b0
mov dword [esp + 0x18], eax
jmp 0x40b4ab
mov dword [esp + 0x18], ebx
push ebx
lea edx, [esp + 0x1588]
push edx
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1dbc], bl
call fcn.0044a990
lea eax, [esp + 0x1584]
push eax
push str.wszSrcPath__s_n
call fcn.004454c0
add esp, 8
push 0x104
lea ecx, [esp + 0xf70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea eax, [esp + 0xf6c]
add eax, 0xfffffffe
jmp 0x40b500
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x40b500
mov edx, dword [str.Fonts]
mov ecx, dword [0x46deb4]
mov dword [eax], edx
mov edx, dword [0x46deb8]
mov dword [eax + 4], ecx
mov cx, word [0x46debc]
mov dword [eax + 8], edx
lea edx, [esp + 0xf6c]
push edx
push str.wszFontPath___s__n
mov word [eax + 0xc], cx
call fcn.004454c0
add esp, 8
mov ecx, ebp
mov edi, 1
call fcn.0040b2e0
xor eax, eax
jmp 0x40b560
movzx ecx, word [eax + 0x46de80]
mov word [esp + eax + 0x178c], cx
add eax, 2
cmp cx, bx
jne 0x40b560
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40b590
push 0x206
lea ecx, [esp + 0x95a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x960], ax
call fcn.00453450
push 0x206
lea eax, [esp + 0xb6e]
xor edx, edx
push ebx
push eax
mov word [esp + 0xb74], dx
call fcn.00453450
push edi
lea ecx, [esp + 0x970]
push str.FontFile_d
push ecx
call esi
push edi
lea edx, [esp + 0xb84]
push str.FontName_d
push edx
call esi
add esp, 0x30
push ebx
lea eax, [esp + 0x1178]
push eax
lea ecx, [esp + 0x95c]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1798]
push edx
call fcn.004099f0
test al, al
je 0x40b7f0
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1174]
mov word [esp + eax + 0x954], cx
add eax, 2
cmp cx, bx
jne 0x40b620
lea eax, [esp + 0x954]
push eax
push str.FONT_FILE__s_n
call fcn.004454c0
add esp, 8
push ebx
lea ecx, [esp + 0x1178]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xb64]
push edx
lea eax, [esp + 0x1798]
push eax
call fcn.004099f0
test al, al
je 0x40b7f0
lea ecx, [esp + 0x1174]
push ecx
lea edx, [esp + 0xb60]
push 0x46de2c
push edx
call esi
lea eax, [esp + 0xb68]
push eax
push str.FONT_Name__s_n
call fcn.004454c0
add esp, 0x14
lea ecx, [esp + 0x954]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xb60]
push edx
call fcn.0040b190
test al, al
je 0x40b6c6
inc edi
jmp 0x40b590
lea eax, [esp + 0x954]
push eax
lea ecx, [esp + 0x1588]
push ecx
lea edx, [esp + 0x1384]
push 0x46ab98
push edx
call esi
lea eax, [esp + 0x964]
push eax
lea ecx, [esp + 0xf80]
push ecx
lea edx, [esp + 0xd7c]
push 0x46ab98
push edx
call esi
lea eax, [esp + 0xd84]
push eax
lea ecx, [esp + 0x13a0]
push ecx
push str.Copy_Font_File_n_Src___s__n_Dst___s__n
call fcn.004454c0
add esp, 0x2c
push 0x80
lea edx, [esp + 0xd68]
push edx
call ebp
push ebx
lea eax, [esp + 0xd68]
push eax
lea ecx, [esp + 0x1384]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyFile_Error__d__n
call fcn.004454c0
add esp, 8
push 0x80
lea edx, [esp + 0xd68]
push edx
call ebp
cmp dword [esp + 0x20], 0x15
jl 0x40b798
push 0x20006
lea eax, [esp + 0xd68]
push eax
lea ecx, [esp + 0xb64]
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00451b60
add esp, 0x14
lea edx, [esp + 0xd64]
push edx
call dword [sym.imp.GDI32.dll_AddFontResourceW]
mov ecx, dword [esp + 0x14]
push ebx
push ebx
lea eax, [esp + 0xd6c]
push eax
push 1
call fcn.00451cc0
lea ecx, [esp + 0xb5c]
push ecx
lea edx, [esp + 0x1178]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts_s
push edx
call esi
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
lea eax, [esp + 0x117c]
push eax
push 3
call fcn.00451cc0
inc edi
jmp 0x40b590
push ebx
push ebx
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x1c]
call fcn.0040b1f0
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x40b820
mov ecx, esi
call fcn.0040a950
push esi
call fcn.004534ca
add esp, 4
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x40b838
mov ecx, esi
call fcn.0043df40
push esi
call fcn.004534ca
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x1db0], 0xffffffff
call fcn.0043df40
xor eax, eax
mov ecx, dword [esp + 0x1da8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d90]
xor ecx, esp
call fcn.00453432
add esp, 0x1da0
ret 4