Function at 0x401bf0
Capabilities:
Query or enumerate registry value
Read file on windows
Set registry value

Disassembly:
sub esp, 0x258
lea eax, [esp + 0x14]
push ebx
push esi
push edi
push ebp
push 0x4081a0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x24]
push str.EPLPTX01.SYS
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x128]
lea eax, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x401c3f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x258
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x148]
mov dword [esp + 0x20], eax
add eax, 8
mov dword [esp + 0x1c], eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x401c74
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x258
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
jne 0x401c95
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x258
ret
lea ebx, [edi + 8]
push 0
lea eax, [esp + 0x28]
push 0
push 3
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 0x80000000
push eax
call ebp
mov ebp, eax
push 0
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
je 0x401cf5
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x258
ret
mov eax, dword [esp + 0x13c]
lea edx, [esp + 0x10]
push edx
mov dword [edi], eax
mov ecx, dword [esp + 0x144]
push 0xf003f
push 0
mov dword [edi + 4], ecx
push str.SYSTEMCurrentControlSetControlPrintMonitorsLocal_Port
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401d35
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x258
ret
lea eax, [esp + 0x24]
push str.PrtConf
mov dword [esp + 0x1c], 3
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push 0
mov dword [esp + 0x1c], 0
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401e9d
mov eax, dword [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x401db6
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x258
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x401df0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebx
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call ebx
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x258
ret
lea eax, [esp + 0x24]
push str.PrtConf
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push ebp
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401e51
push ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call ebp
push esi
call ebx
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x258
ret
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jl 0x401e90
call ebp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call ebp
push esi
call ebx
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x258
ret
call ebp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebx
jmp 0x401ea9
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [esp + 0x24]
push str.PrtConf
mov dword [esp + 0x1c], 3
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push edi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call ebp
push esi
call ebx
test edi, edi
je 0x401f02
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x258
ret
mov eax, 1
pop ebp
mov dword [0x4082a4], 1
pop edi
pop esi
pop ebx
add esp, 0x258
ret