Function at 0x4a5dd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff08
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xf4], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a6136
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a6144
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [0x4b22f0]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0047ecd8
xor edx, edx
push ebp
push 0x4a60ff
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov edx, dword [eax]
call dword [edx + 0xd8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
call sub.ukeydll.dll_UKeyDll_ListAllDev
add esp, 0xc
mov ebx, eax
push 0x4a614c
call sub.kernel32.dll_OutputDebugStringA
cmp ebx, 0x9000
jne 0x4a60dc
mov eax, dword [ebp - 4]
mov byte [eax + 0x348], 0
mov eax, dword [ebp - 0x10]
add eax, 0x3e8
call fcn.00402ac8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x10]
add edx, 0x3e8
mov eax, dword [ebp - 8]
call fcn.004075d0
push 0x4a6154
call sub.kernel32.dll_OutputDebugStringA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ukeydll.dll_UKeyDll_ListAllDev
add esp, 0xc
push 0x4a615c
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4a609d
inc eax
mov dword [ebp - 0x24], eax
push 0x4a6164
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 0x14]
push eax
call sub.ukeydll.dll_UKeyDll_CheckDeviceType
pop ecx
cmp eax, 0x13
jne 0x4a5f00
mov eax, dword [ebp - 4]
mov byte [eax + 0x348], 1
jmp 0x4a6094
push 0x4a616c
call sub.kernel32.dll_OutputDebugStringA
push 0
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.ukeydll.dll_UKeyDll_OpenDev
add esp, 0xc
mov ebx, eax
push 0x4a6174
call sub.kernel32.dll_OutputDebugStringA
cmp ebx, 0x9000
jne 0x4a6074
mov dword [ebp - 0x1c], 0xc9
lea eax, [ebp - 0xed]
mov edx, 0xc9
call fcn.004075d0
push 0x4a617c
call sub.kernel32.dll_OutputDebugStringA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xed]
push eax
push 8
mov eax, dword [ebp - 0x18]
push eax
call sub.ukeydll.dll_UKeyDll_GetDevParam
add esp, 0x10
mov ebx, eax
cmp ebx, 0x9000
jne 0x4a5ffc
push 0x4a6184
call sub.kernel32.dll_OutputDebugStringA
lea eax, [ebp - 0x20]
lea edx, [ebp - 0xed]
call fcn.00404928
push 0x4a618c
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
push ebp
push 0x4a5fc1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x20]
call fcn.0040664c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a5fdd
push 0x4a619c
call sub.kernel32.dll_OutputDebugStringA
cmp dword [ebp - 0x20], 0
jne 0x4a6009
lea eax, [ebp - 0x20]
mov edx, 0x4a61ac
call fcn.004047c8
jmp 0x4a6009
lea eax, [ebp - 0x20]
mov edx, 0x4a61ac
call fcn.004047c8
push 0x4a61b0
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x23c]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x4a61b8
call sub.kernel32.dll_OutputDebugStringA
lea eax, [ebp - 0xf4]
mov edx, dword [ebp - 0x14]
call fcn.00404928
mov edx, dword [ebp - 0xf4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x4a61c0
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 0x18]
push eax
call sub.ukeydll.dll_UKeyDll_CloseDev
pop ecx
push 0x4a61c8
call sub.kernel32.dll_OutputDebugStringA
lea eax, [ebp - 0xf8]
mov edx, dword [ebp - 0x14]
call fcn.00404928
mov eax, dword [ebp - 0xf8]
call fcn.004049f0
add eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
dec dword [ebp - 0x24]
jne 0x4a5ed8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a60c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push 0x4a61d0
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 8]
call fcn.00402af8
jmp 0x4a60e3
mov eax, ebx
call fcn.00493650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6106
mov eax, dword [0x4b22f0]
mov eax, dword [eax]
xor edx, edx
call fcn.0047ecd8
ret