Function at 0x4bfec0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get keyboard layout
Get system information on windows
Identify system language via api
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x50bedc
push eax
mov eax, 0x27b4
mov dword fs:[0], esp
call fcn.004d12b0
push ebx
push esi
mov dword [ebp - 0x14], 0
mov ebx, ecx
mov esi, dword [ebp + 8]
push edi
push str.System_Info_n_________________________________________n
push dword [esi]
call fcn.004d53c6
push 0
call fcn.004c7a40
push eax
call fcn.004bcbf0
add esp, 0x10
mov ecx, ebx
push eax
call fcn.004bd6e0
push eax
push str.OS_Platform_______________s__s_n
push dword [esi]
call fcn.004d53c6
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x1a8], ax
lea eax, [ebp - 0x1a6]
push eax
call fcn.004cf600
add esp, 0x1c
mov dword [ebp + 8], 0xc8
lea ecx, [ebp - 0x74]
push 0
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004b9150
cmp dword [ebp - 0x68], 0
mov dword [ebp - 4], 0
je 0x4c0097
push 0
push 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1a8]
push eax
push str.ProductName
lea ecx, [ebp - 0x70]
call fcn.004cbe60
test eax, eax
je 0x4bffa4
lea eax, [ebp - 0x1a8]
push eax
push str.OS_Product_Name___________s_n
push dword [esi]
call fcn.004d53c6
add esp, 0xc
push 0
push 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1a8]
push eax
push str.CSDVersion
lea ecx, [ebp - 0x70]
call fcn.004cbe60
test eax, eax
je 0x4bffda
lea eax, [ebp - 0x1a8]
push eax
push str.OS_Service_Pack___________s_n
push dword [esi]
call fcn.004d53c6
add esp, 0xc
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x18]
push eax
push str.CurrentMajorVersionNumber
lea ecx, [ebp - 0x70]
call fcn.004cbcf0
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x70]
push 0
je 0x4c0057
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x10]
push eax
push str.CurrentMinorVersionNumber
call fcn.004cbcf0
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x54]
push 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x54], 0
push eax
push str.CurrentMajorVersionNumber
lea ecx, [ebp - 0x70]
call fcn.004cbcf0
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x1a8]
push 0x510408
push eax
call fcn.004d1675
add esp, 0x10
jmp 0x4c006e
push 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1a8]
push eax
push str.CurrentVersion
call fcn.004cbe60
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
call fcn.004c7a40
push dword [ebp - 0x20]
lea eax, [ebp - 0x1a8]
push eax
push str.OS_Build_Version__________s._d_n
push dword [esi]
call fcn.004d53c6
add esp, 0x14
push 0
call fcn.004c7de0
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004b9ea0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4c00b7
mov eax, dword [eax]
push eax
push 0
call fcn.004c7a40
add esp, 4
push eax
push str.OS_GetOS_Reg_Settings_____d__s_n
push dword [esi]
call fcn.004d53c6
add esp, 0x10
cmp dword [ebp - 0x3c], 8
jb 0x4c00e3
push dword [ebp - 0x50]
call fcn.004cf489
add esp, 4
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.004b93f0
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xe0]
mov ecx, ebx
push edi
call fcn.004bd820
push eax
movzx eax, di
push eax
push str.Processor_Architecture___0x_x___s_n
push dword [esi]
call fcn.004d53c6
add esp, 0x10
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4c0162
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0xa0]
push eax
push str.Screen_Resolution_________d_by__d_n
push dword [esi]
call fcn.004d53c6
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp + 8], eax
test eax, eax
je 0x4c019f
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push eax
call edi
push eax
push 0x58
push dword [ebp + 8]
call edi
push eax
push str.System_DPI_Settings_______d_by__d_n
push dword [esi]
call fcn.004d53c6
add esp, 0x10
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx edi, ax
push edi
call fcn.004c9b70
push eax
push edi
push str.OS_Install_______________0x_x___s_n
push dword [esi]
call fcn.004d53c6
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
push edi
call fcn.004c9b70
push eax
push edi
push str.Current_Display_Language_0x_x___s_n
push dword [esi]
call fcn.004d53c6
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edi, ax
push edi
call fcn.004c9b70
push eax
push edi
push str.System_Default_Locale____0x_x___s_n
push dword [esi]
call fcn.004d53c6
add esp, 0x14
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx edi, ax
push edi
call fcn.004c9b70
push eax
push edi
push str.Keyboard_Layout_Language_0x_x___s_n
push dword [esi]
call fcn.004d53c6
add esp, 0x14
mov ecx, ebx
push dword [esi]
call fcn.004bc5c0
cmp dword [ebx], 0
mov dword [ebp - 0x1c], 0xffffffff
je 0x4c0285
mov eax, dword [ebx]
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x4c0285
push dword [ebp - 0x1c]
push str._nDevice__i_n_________________________________________n
push dword [esi]
call fcn.004d53c6
add esp, 0xc
mov ecx, ebx
push 0
push dword [ebp - 0x1c]
call fcn.004be160
mov edi, eax
push edi
push 0x517dd8
push dword [esi]
call fcn.004d53c6
push edi
call fcn.004d0e0a
add esp, 0x10
cmp dword [ebx], 0
jne 0x4c0236
push str._nProgram_Files_n_________________________________________n
push dword [esi]
call fcn.004d53c6
add esp, 8
lea ecx, [ebp - 0xbc]
push 0
call fcn.004b90e0
push 0
push 0
push 0
push str.SoftwareSynapticsSynTPInstall
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 2
mov dword [ebp - 0x58], 0x2000
call fcn.004bcca0
test eax, eax
je 0x4c030d
push 0
push 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x27c0]
push eax
push str.ProgDir
lea ecx, [ebp - 0xb8]
call fcn.004cbe60
test eax, eax
je 0x4c030d
push 1
push 0x51ac70
push 0x50daec
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004bd2e0
push str._nSystem_Files_n_________________________________________n
push dword [esi]
call fcn.004d53c6
push str.SystemRoot
call fcn.004d686a
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4c0354
push str.WinDir
call fcn.004d686a
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c0354
mov edi, str.C:WINDOWS
push edi
push str.Cannot_get_environment_variable_for_SYSTEMROOT__assume__s_n
push dword [esi]
call fcn.004d53c6
add esp, 0xc
push 0
call fcn.004c7a40
add esp, 4
mov ecx, ebx
push 1
push str.SynTPCo.
cmp eax, 5
jl 0x4c03c9
push str.System32
push edi
push dword [esi]
call fcn.004bd2e0
push 1
push str.SxSSynTPCo.
push str.System32
push edi
push dword [esi]
mov ecx, ebx
call fcn.004bd2e0
push 1
push str.SynTPAPI.
push str.System32
push edi
push dword [esi]
mov ecx, ebx
call fcn.004bd2e0
push 1
push str.SynTPCOM.
push str.System32
push edi
push dword [esi]
mov ecx, ebx
call fcn.004bd2e0
push 1
push str.SynCom.
push str.System32
jmp 0x4c040e
push str.System
push edi
push dword [esi]
call fcn.004bd2e0
push 1
push str.SynTPAPI.
push str.System
push edi
push dword [esi]
mov ecx, ebx
call fcn.004bd2e0
push 1
push str.SynTPCOM.
push str.System
push edi
push dword [esi]
mov ecx, ebx
call fcn.004bd2e0
push 1
push str.SynCom.
push str.System
push edi
push dword [esi]
mov ecx, ebx
call fcn.004bd2e0
push 1
push str.SynTP.sys
push str.System32Drivers
push edi
push dword [esi]
mov ecx, ebx
call fcn.004bd2e0
push 1
push str.SynPTPHID.sys
push str.System32Drivers
push edi
push dword [esi]
mov ecx, ebx
call fcn.004bd2e0
push 1
push str.SynRMIHID.sys
push str.System32Drivers
push edi
push dword [esi]
mov ecx, ebx
call fcn.004bd2e0
push 1
push str.smb_driver_.sys
push str.System32Drivers
push edi
push dword [esi]
mov ecx, ebx
call fcn.004bd2e0
push 1
push str.i8042prt.sys
push str.System32Drivers
push edi
push dword [esi]
mov ecx, ebx
call fcn.004bd2e0
lea eax, [ebp - 0x27c0]
push 0x2000
push eax
call fcn.004bb590
add esp, 8
test eax, eax
je 0x4c04e5
push str._nx64_System_Files_n_________________________________________n
push dword [esi]
call fcn.004d53c6
add esp, 8
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push 1
push str..
push str.SynTPCOM.
push eax
push dword [esi]
call fcn.004bd2e0
push 1
push str..
push str.SynCOM.
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004bd2e0
push str._nSynaptics_Files_found_in_PATH_n_________________________________________n
push dword [esi]
call fcn.004d53c6
push str.PATH
mov dword [ebp - 0x90], str.SynTP.sys
mov dword [ebp - 0x8c], str.SynTPAPI.dll
mov dword [ebp - 0x88], str.SynTPCOM.dll
mov dword [ebp - 0x84], str.SynTPCpl.dll
mov dword [ebp - 0x80], str.SynTPEnh.exe
mov dword [ebp - 0x7c], 0x534154
mov dword [ebp - 0x78], str.SynTPFcs.dll
mov dword [ebp - 0x74], str.SynTPLpr.exe
mov dword [ebp - 0x70], str.SynCOM.dll
mov dword [ebp - 0x6c], str.SynCtrl.dll
mov dword [ebp - 0x68], str.SynISDLL.dll
mov dword [ebp - 0x64], str.SynTPCo.dll
mov dword [ebp - 0x60], str.SxSSynTPCo.dll
mov dword [ebp - 0x5c], 0
call fcn.004d686a
lea edx, [ebp - 0x27c0]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x4c0574
lea eax, [ebp - 0x27c0]
push 0x53423c
push eax
call fcn.004d670d
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x4c05e0
nop
xor edi, edi
mov ecx, str.SynTP.sys
push 0
push ecx
push 0x50daec
push eax
push dword [esi]
mov ecx, ebx
call fcn.004bd2e0
mov eax, dword [ebp + 8]
lea edi, [edi + 1]
mov ecx, dword [ebp + edi*4 - 0x90]
test ecx, ecx
jne 0x4c05a7
push 0x53423c
push 0
call fcn.004d670d
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x4c05a0
push str._nEnviroment_Info_n_________________________________________n
push dword [esi]
call fcn.004d53c6
add esp, 8
mov ecx, ebx
push dword [esi]
call fcn.004bd000
push str._nRegistry_Info_n_________________________________________n
push dword [esi]
call fcn.004d53c6
add esp, 8
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
xor eax, eax
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x50daec
mov word [ecx], ax
call fcn.0040a410
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x54], esp
xor eax, eax
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x50daec
mov word [ecx], ax
call fcn.0040a410
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x18], esp
xor eax, eax
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x50daec
mov word [ecx], ax
call fcn.0040a410
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x10], esp
xor eax, eax
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x50daec
mov word [ecx], ax
call fcn.0040a410
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
xor eax, eax
push 0x27
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.SYSTEMCurrentControlSetServicesSynTP
mov word [ecx], ax
call fcn.0040a410
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
call fcn.004c8240
add esp, 0x7c
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 7
mov dword [ebp - 0x14], 1
jb 0x4c06ff
mov eax, dword [eax]
push eax
lea eax, [ebp + 8]
mov ecx, ebx
push eax
push esi
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str.SYSTEMCurrentControlSetEnumACPI
lea eax, [ebp + 8]
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str.SYSTEMCurrentControlSetEnumHID
lea eax, [ebp + 8]
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str.SYSTEMCurrentControlSetEnumSERENUM
lea eax, [ebp + 8]
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea eax, [ebp + 8]
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPrecisionTouchPad
lea eax, [ebp + 8]
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str.SOFTWARESynaptics
lea eax, [ebp + 8]
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea eax, [ebp + 8]
mov dword [ebp + 8], SysStringLen
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPrecisionTouchPad
lea eax, [ebp + 8]
mov dword [ebp + 8], SysStringLen
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str.SOFTWARESynaptics
lea eax, [ebp + 8]
mov dword [ebp + 8], SysStringLen
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str.Control_PanelDesktop
lea eax, [ebp + 8]
mov dword [ebp + 8], SysStringLen
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str.Control_PanelMouse
lea eax, [ebp + 8]
mov dword [ebp + 8], SysStringLen
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str..DEFAULTControl_PanelMouse
lea eax, [ebp + 8]
mov dword [ebp + 8], VariantClear
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
test eax, eax
je 0x4c08c2
push 0
push str.CLSID2F603045_309F_11CF_9774_0020AFD0CFF6InProcServer32
lea eax, [ebp + 8]
mov dword [ebp + 8], SysStringLen
push eax
push esi
mov ecx, ebx
call fcn.004bd5c0
mov byte [ebp + 0xb], 0
test eax, eax
jne 0x4c08c6
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x3c], 8
mov dword [ebp - 4], 2
jb 0x4c08de
push dword [ebp - 0x50]
call fcn.004cf489
add esp, 4
cmp byte [ebp + 0xb], 0
jne 0x4c0d68
push str._nSetupAPI_Log_Info_n_________________________________________n
push dword [esi]
call fcn.004d53c6
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add esp, 8
cmp dword [ebx + 0x450], 0
je 0x4c0975
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c0], ax
lea eax, [ebp - 0x7be]
push eax
call fcn.004cf600
add esp, 0xc
lea eax, [ebp - 0x7c0]
push 0x104
push eax
call edi
push 0
call fcn.004c7a40
add esp, 4
cmp eax, 7
lea eax, [ebp - 0x7c0]
push eax
lea eax, [ebp - 0x27c0]
jne 0x4c0955
push str._sSetupAPI.log
jmp 0x4c095a
push str._sinf_setupapi.dev.log
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004bd0c0
jmp 0x4c0984
push str._not_included__n
push dword [esi]
call fcn.004d53c6
add esp, 8
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x5b8], ax
lea eax, [ebp - 0x5b6]
push eax
call fcn.004cf600
add esp, 0xc
lea eax, [ebp - 0x5b8]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4c0a89
xor eax, eax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
cmp word [ebp - 0x5b8], ax
jne 0x4c09e0
xor ecx, ecx
jmp 0x4c09ff
lea ecx, [ebp - 0x5b8]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c09f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x5b8]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040a410
push str.SynapticsSynReflashSynReflash.log
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004778a0
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x3c], 8
jb 0x4c0a3d
push dword [ebp - 0x50]
call fcn.004cf489
add esp, 4
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c0a78
push str._nSynReflash_Log_Info_n_________________________________________n
push dword [esi]
call fcn.004d53c6
add esp, 8
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
mov ecx, ebx
cmovae eax, dword [ebp - 0x38]
push eax
push dword [esi]
call fcn.004bd0c0
cmp dword [ebp - 0x24], 8
jb 0x4c0a89
push dword [ebp - 0x38]
call fcn.004cf489
add esp, 4
push 0x524e40
push dword [esi]
call fcn.004d53c6
add esp, 8
lea eax, [ebp - 0x3b0]
push 0x104
push eax
call edi
lea edi, [ebp - 0x3b0]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4c0ab0
mov eax, dword [0x50f8e4]
mov dword [edi], eax
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4c0ad1
mov ecx, ebx
call fcn.004ba490
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x27c0]
push str._sControl.KTL
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004ba140
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x27c0]
push str._sPacket.KTL
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004ba140
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x27c0]
push str._sI8042.KTL
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004ba140
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x27c0]
push str._sNGIControl.KTL
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004ba140
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x27c0]
push str._sNGIPacket.KTL
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004ba140
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x27c0]
push str._sUsbControl.KTL
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004ba140
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x27c0]
push str._sUsbPacket.KTL
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x27c0]
push eax
push dword [esi]
mov ecx, ebx
call fcn.004ba140
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x27c0]
push str._sPTPControl.KTL
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004ba140
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x27c0]
push str._sPTPPacket.KTL
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004ba140
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x27c0]
push str._sSentOSPackets.KTL
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004ba140
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x27c0]
push str._sProcessedPackets.KTL
push eax
call fcn.004d1675
add esp, 0xc
lea eax, [ebp - 0x27c0]
mov ecx, ebx
push eax
push dword [esi]
call fcn.004ba140
test edi, edi
jne 0x4c0d68
lea eax, [ebp - 0x70]
push eax
call fcn.004c72c0
push 0x517e78
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 9
push eax
call fcn.004778a0
push str.Enhancement.KTL
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push eax
call fcn.004778a0
add esp, 0x1c
cmp dword [ebp - 0x3c], 8
jb 0x4c0cf5
push dword [ebp - 0x50]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp - 0x3c], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
jb 0x4c0d1a
push dword [ebp - 0x70]
call fcn.004cf489
add esp, 4
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov ecx, ebx
cmovae eax, dword [ebp - 0x38]
push eax
push dword [esi]
call fcn.004ba140
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call fcn.004d6985
add esp, 4
cmp dword [ebp - 0x24], 8
jb 0x4c0d54
push dword [ebp - 0x38]
call fcn.004cf489
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0xffffffff
call fcn.004b93f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8