Function at 0x40b390
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x462297
mov eax, dword fs:[0]
push eax
mov eax, 0x1d94
call fcn.0044f450
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x1d90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f038]
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.004412c0
add esp, 8
lea ecx, [esp + 0x20]
call fcn.0044a520
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 0x40b400
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 0x40b420
push 0x82c
call fcn.0044e29f
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x1db0], 1
cmp eax, ebx
je 0x40b472
lea ecx, [esp + 0x1994]
push ecx
lea edx, [esp + 0x1ba0]
push edx
push ebx
mov ecx, eax
call fcn.0044e070
mov dword [esp + 0x14], eax
jmp 0x40b476
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.0044e1b0
push 0x4435c
call fcn.0044e29f
add esp, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x1db0], 2
cmp eax, ebx
je 0x40b4c7
push ebx
push ebx
push esi
mov ecx, eax
call 0x40a7d0
mov dword [esp + 0x18], eax
jmp 0x40b4cb
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.00446790
lea eax, [esp + 0x1584]
push eax
push str.wszSrcPath__s_n
call fcn.004412c0
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 0x40b520
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x40b520
mov edx, dword [str.Fonts]
mov ecx, dword [0x467ab4]
mov dword [eax], edx
mov edx, dword [0x467ab8]
mov dword [eax + 4], ecx
mov cx, word [0x467abc]
mov dword [eax + 8], edx
lea edx, [esp + 0xf6c]
push edx
push str.wszFontPath___s__n
mov word [eax + 0xc], cx
call fcn.004412c0
add esp, 8
mov ecx, ebp
mov edi, 1
call fcn.0040b300
xor eax, eax
jmp 0x40b580
movzx ecx, word [eax + 0x467a80]
mov word [esp + eax + 0x178c], cx
add eax, 2
cmp cx, bx
jne 0x40b580
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40b5b0
push 0x206
lea ecx, [esp + 0x95a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x960], ax
call fcn.0044e1b0
push 0x206
lea eax, [esp + 0xb6e]
xor edx, edx
push ebx
push eax
mov word [esp + 0xb74], dx
call fcn.0044e1b0
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.00409a10
test al, al
je 0x40b810
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 0x40b640
lea eax, [esp + 0x954]
push eax
push str.FONT_FILE__s_n
call fcn.004412c0
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.00409a10
test al, al
je 0x40b810
lea ecx, [esp + 0x1174]
push ecx
lea edx, [esp + 0xb60]
push 0x467a2c
push edx
call esi
lea eax, [esp + 0xb68]
push eax
push str.FONT_Name__s_n
call fcn.004412c0
add esp, 0x14
lea ecx, [esp + 0x954]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xb60]
push edx
call fcn.0040b1b0
test al, al
je 0x40b6e6
inc edi
jmp 0x40b5b0
lea eax, [esp + 0x954]
push eax
lea ecx, [esp + 0x1588]
push ecx
lea edx, [esp + 0x1384]
push 0x464ad0
push edx
call esi
lea eax, [esp + 0x964]
push eax
lea ecx, [esp + 0xf80]
push ecx
lea edx, [esp + 0xd7c]
push 0x464ad0
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.004412c0
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.004412c0
add esp, 8
push 0x80
lea edx, [esp + 0xd68]
push edx
call ebp
cmp dword [esp + 0x20], 0x15
jl 0x40b7b8
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.0044d960
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.0044dac0
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.0044dac0
inc edi
jmp 0x40b5b0
push ebx
push ebx
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x1c]
call fcn.0040b210
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x40b840
mov ecx, esi
call 0x40a970
push esi
call fcn.0044e22a
add esp, 4
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x40b858
mov ecx, esi
call fcn.00440490
push esi
call fcn.0044e22a
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x1db0], 0xffffffff
call fcn.00440490
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.0044e1a0
add esp, 0x1da0
ret 4