Function at 0x4025c0
Capabilities:
Copy file
Get number of processors
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x426a82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5d4
mov eax, dword [0x432c88]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x5ec], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], eax
push 0xff
mov byte [esp + 0x5f0], 4
call fcn.0040d565
mov ebp, eax
mov ecx, 0x3f
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x434bb8]
add esp, 4
add eax, 0x5c
mov ecx, 0x434bc4
push eax
call fcn.0041ef31
lea ecx, [esp + 0x68]
push ecx
push 0xff
push ebp
push 1
push str.Windows_NT_x86
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
mov eax, dword [esi + 0x64]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov edx, dword [eax + 0x1c]
push 0x147
push edx
call ebx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x60]
push 0
push 0
mov eax, dword [eax + 0x1c]
push 0x147
push eax
call ebx
mov ecx, dword [eax*4 + 0x432160]
lea edi, [eax*4 + 0x432160]
push str..DLL
push ecx
lea edx, [esp + 0x2c]
push str.Printer_Driverx86_s_s
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
call fcn.0041a24b
mov eax, dword [edi]
push str..DLL
push eax
push ebp
lea ecx, [esp + 0x2c]
push str._s_s_s
push ecx
call fcn.0041a24b
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x48]
add esp, 0x24
push 0
push edx
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
call edi
mov ecx, dword [0x434bb8]
push 0
push 0xa
push 0x402
mov edx, dword [ecx + 0x7c]
push edx
call ebx
mov eax, dword [esp + 0x18]
push str..GPD
lea edx, [esp + 0x28]
mov ecx, dword [eax*4 + 0x432188]
push ecx
push str.Printer_Driverx86_s_s
push edx
call fcn.0041a24b
mov eax, dword [esp + 0x28]
push str..GPD
lea edx, [esp + 0x24]
mov ecx, dword [eax*4 + 0x432188]
push ecx
push ebp
push str._s_s_s
push edx
call fcn.0041a24b
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
add esp, 0x24
push 0
push eax
push ecx
call edi
mov edx, dword [0x434bb8]
push 0
push 0x14
push 0x402
mov eax, dword [edx + 0x7c]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
lea ecx, [esp + 0x14]
push str._suniDRVui.DLL
push ecx
call fcn.0041a24b
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push edx
push str.Printer_Driverx86uniDRVui.DLL
call edi
mov eax, dword [0x434bb8]
push 0
push 0x1e
push 0x402
mov ecx, dword [eax + 0x7c]
push ecx
call ebx
push ebp
lea edx, [esp + 0x14]
push str._suniDRV.DLL
push edx
call fcn.0041a24b
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0
push eax
push str.Printer_Driverx86uniDRV.DLL
call edi
push ebp
lea ecx, [esp + 0x14]
push str._sUNIDRV.HLP
push ecx
call fcn.0041a24b
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push edx
push str.Printer_Driverx86UNIDRV.HLP
call edi
mov eax, dword [0x434bb8]
push 0
push 0x28
push 0x402
mov ecx, dword [eax + 0x7c]
push ecx
call ebx
push ebp
lea edx, [esp + 0x14]
push str._sUNIRES.DLL
push edx
call fcn.0041a24b
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0
push eax
push str.Printer_Driverx86UNIRES.DLL
call edi
push ebp
lea ecx, [esp + 0x14]
push str._sTTFSUB.GPD
push ecx
call fcn.0041a24b
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push edx
push str.Printer_Driverx86TTFSUB.GPD
call edi
mov eax, dword [0x434bb8]
push 0
push 0x32
push 0x402
mov ecx, dword [eax + 0x7c]
push ecx
call ebx
push ebp
lea edx, [esp + 0x14]
push str._sSTDNAMES.GPD
push edx
call fcn.0041a24b
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0
push eax
push str.Printer_Driverx86STDNAMES.GPD
call edi
push 0x3f3
mov ecx, esi
call fcn.0041e31c
mov dword [esi + 0x60], eax
mov ecx, dword [eax + 0x1c]
push 0
push 0
push 0x147
push ecx
call ebx
mov edx, dword [0x434bb8]
push 0
push 0x3c
push 0x402
mov eax, dword [edx + 0x7c]
push eax
call ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2dd]
mov byte [esp + 0x2dc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd5]
mov byte [esp + 0xd4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x1d8], 0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3e1]
mov byte [esp + 0x3e0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
lea edx, [esp + 0x2dc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x2dc]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.uniDRV.DLL
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xd4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xd4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43254c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
mov ecx, edx
and ecx, 3
lea edx, [esp + 0xd4]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax*4 + 0x432188]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xd4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str..GPD
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1d8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1d8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.uniDRVui.DLL
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x3e0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.uniDRV.HLP
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3e0]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1d8]
and ecx, 3
mov dword [esp + 0x54], eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2dc]
lea eax, [esp + 0x3e0]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xd4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
lea ebp, [ecx*4 + 0x4321b0]
mov dword [esp + 0x50], edx
push str..DLL
mov edx, dword [ebp]
mov ecx, dword [eax]
mov dword [esp + 0x48], edx
push ecx
lea edx, [esp + 0x74]
push str._s_s
push edx
mov dword [esp + 0x50], 2
mov dword [esp + 0x58], str.Windows_NT_x86
mov dword [esp + 0x74], 0x43267c
mov dword [esp + 0x70], 0x434bcc
call fcn.0040d5f1
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x4f4]
mov esi, str._ttfsub.GPD
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
lea edi, [esp + 0x4f4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50a]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
push 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4ec]
push 0
mov dword [esp + 0x68], ecx
call sub.WINSPOOL.DRV_AddPrinterDriverA
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [esp + 0x24]
push 0x432678
push eax
call fcn.0041a24b
mov ecx, dword [0x434bb8]
add esp, 0xc
mov edx, dword [ecx + 0x7c]
push 0
push 0x46
push 0x402
push edx
call ebx
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x80]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x434bc4
call fcn.0041f228
mov dword [esp + 0x8c], eax
mov eax, dword [ebp]
mov dword [esp + 0x90], eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x80]
mov dword [esp + 0xa8], 0x43267c
push eax
push 2
push 0
mov dword [esp + 0xb0], str.WinPrint
call sub.WINSPOOL.DRV_AddPrinterA
mov ecx, dword [0x434bb8]
push 0
push 0x50
push 0x402
mov edx, dword [ecx + 0x7c]
mov edi, eax
push edx
call ebx
call esi
push eax
lea eax, [esp + 0x24]
push 0x432678
push eax
call fcn.0041a24b
mov esi, dword [esp + 0x38]
add esp, 0xc
mov ecx, esi
push 0x3f4
call fcn.0041e31c
mov dword [esi + 0x7c], eax
mov ecx, dword [eax + 0x1c]
push 0
push 0
push 0xf0
push ecx
call ebx
cmp eax, 1
jne 0x402d3b
mov edx, dword [0x434bc4]
mov eax, dword [ebp]
push edx
push str.winspool
push eax
lea ecx, [esp + 0x2c]
push str._s__s__s
push ecx
call fcn.0041a24b
mov edx, dword [esp + 0x34]
add esp, 0x14
lea ecx, [esp + 0x20]
mov eax, dword [edx - 8]
push eax
call fcn.0041f228
mov ebp, eax
lea eax, [esp + 0x28]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402d3b
mov ecx, dword [0x432c88]
push ebp
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
call fcn.0041ef81
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 8]
push eax
mov eax, dword [esp + 0x2c]
push ebp
push 1
push 0
push str.Device
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
lea ecx, [esp + 0x18]
setne byte [esp + 0x17]
call fcn.0041edf8
mov al, byte [esp + 0x17]
test al, al
je 0x402d30
push 0
push 0
push 0x4325f4
call fcn.0042253f
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x434bb8]
push 0
push 0x5a
push 0x402
mov eax, dword [edx + 0x7c]
push eax
call ebx
cmp dword [esp + 0x30], 3
jl 0x402ec5
mov eax, dword [esi + 0x68]
push 0
push 0
push 0x147
mov ecx, dword [eax + 0x1c]
push ecx
call ebx
mov ebp, eax
mov eax, dword [esi + 0x6c]
push 0
push 0
mov edx, dword [eax + 0x1c]
push 0x147
push edx
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x70]
push 0
push 0
mov eax, dword [eax + 0x1c]
push 0x147
push eax
call ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x74]
push 0
push 0
mov ecx, dword [eax + 0x1c]
push 0x147
push ecx
call ebx
mov esi, dword [esi + 0x78]
push 0
push 0
push 0x147
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x48], eax
push edx
call ebx
mov ecx, dword [0x432c88]
mov dword [esp + 0x18], ecx
mov edx, dword [eax*4 + 0x432248]
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
mov ecx, dword [eax*4 + 0x432228]
mov byte [esp + 0x5f0], 5
mov eax, dword [edx*4 + 0x432218]
push ecx
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [ebp*4 + 0x4321f4]
mov edx, dword [ecx*4 + 0x432234]
lea ecx, [esp + 0x24]
push edx
push eax
push str._s__s__s__s__s
push ecx
call fcn.0041a24b
mov edx, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x18]
mov eax, dword [edx - 8]
push eax
call fcn.0041f228
mov esi, eax
lea eax, [esp + 0x28]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionPorts
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402eb4
mov ecx, dword [0x432c88]
push esi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
call fcn.0041ef81
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x34]
push esi
push 1
mov ecx, dword [eax*4 + 0x4321d8]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
lea ecx, [esp + 0x1c]
setne byte [esp + 0x17]
call fcn.0041edf8
mov al, byte [esp + 0x17]
test al, al
je 0x402ea9
push 0
push 0
push 0x4325f4
call fcn.0042253f
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x5ec], 4
call fcn.0041edf8
mov ecx, dword [0x434bb8]
push 0
push 0x5f
push 0x402
mov edx, dword [ecx + 0x7c]
push edx
call ebx
push edi
call sub.WINSPOOL.DRV_ClosePrinter
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x434bb8]
push 0
push 0x64
push 0x402
mov ecx, dword [eax + 0x7c]
push ecx
call ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x5ec], 3
call fcn.0041edf8
lea ecx, [esp + 0x10]
mov byte [esp + 0x5ec], 2
call fcn.0041edf8
lea ecx, [esp + 0x38]
mov byte [esp + 0x5ec], 1
call fcn.0041edf8
lea ecx, [esp + 0x24]
mov byte [esp + 0x5ec], 0
call fcn.0041edf8
lea ecx, [esp + 0x20]
mov dword [esp + 0x5ec], 0xffffffff
call fcn.0041edf8
mov ecx, dword [esp + 0x5e4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5e0
ret