Function at 0x48e470
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
push 9
xor eax, eax
mov dword [ebp - 0x50], edi
push str.hotkeybox
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00402e60
push 0
push 0x5b72e0
push 0x5b67e4
push 0
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.004270b0
push eax
call sub.msvcrt.dll___RTDynamicCast
mov edx, dword [ebp - 0x1c]
add esp, 0x14
mov dword [edi + 0x258], eax
cmp edx, 8
jb 0x48e506
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48e4fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ee6c
push edx
push ecx
call fcn.0053140c
add esp, 8
call fcn.0047a580
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x5c], eax
test eax, eax
jle 0x48ee58
mov ecx, dword [0x5b8ec0]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x58], ecx
mov eax, dword [0x5b851c]
cmp eax, dword [ecx + 8]
jg 0x48ee71
mov eax, dword [0x5b8508]
xor ecx, ecx
mov edx, dword [0x5b8514]
test eax, eax
je 0x48e55a
mov eax, dword [eax]
test eax, eax
je 0x48e55a
mov ecx, dword [eax]
xor eax, eax
lea esi, [edx + ebx]
test ecx, ecx
je 0x48e56b
mov ecx, dword [ecx]
test ecx, ecx
je 0x48e56b
mov eax, dword [ecx]
test eax, eax
jne 0x48e573
xor edx, edx
jmp 0x48e575
mov edx, dword [eax]
mov ecx, dword [edx + 8]
mov eax, esi
shr eax, 1
dec ecx
and ecx, eax
and esi, 1
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
lea ecx, [eax + esi*8]
lea eax, [ebp - 0x64]
push eax
call fcn.0040abf0
push 0x43c
call fcn.005313dc
add esp, 4
test eax, eax
je 0x48e5b5
push 1
mov ecx, eax
call fcn.0043fc40
mov edi, eax
mov dword [ebp - 0x34], eax
jmp 0x48e5ba
xor edi, edi
mov dword [ebp - 0x34], edi
push 0x14
xor eax, eax
mov dword [ebp - 0x20], 0
push str.main_item_hotkey.xml
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00402e60
sub esp, 0x28
mov eax, esp
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.004097f0
mov edx, dword [ebp - 0x1c]
add esp, 0x30
cmp edx, 8
jb 0x48e630
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48e626
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ee6c
push edx
push ecx
call fcn.0053140c
add esp, 8
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ebx + 0x258]
mov eax, dword [ecx]
call dword [eax + 0x15c]
test eax, eax
jne 0x48e68d
mov ecx, edi
call fcn.0042a010
mov ecx, edi
mov esi, eax
call fcn.00429f90
push 1
sub esp, 8
mov ecx, esp
push 0
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov ecx, dword [ebx + 0x258]
push 0x5b7178
push 0x5b6c40
push 0
mov eax, dword [ecx]
call dword [eax + 0x18c]
push eax
call sub.msvcrt.dll___RTDynamicCast
add esp, 0x14
mov ecx, eax
call fcn.0043ca90
mov ebx, dword [ebp - 0x64]
mov eax, dword [ebx + 0x14]
cmp eax, 4
je 0x48e6bb
cmp eax, 7
jne 0x48e6d0
cmp dword [ebx + 0x7c], 0
jne 0x48e6d0
push dword [ebx]
lea eax, [ebp - 0x30]
push str.lnk_d
push eax
call fcn.004014d0
add esp, 0xc
jmp 0x48e7bc
cmp dword [ebx + 0x7c], 0
jne 0x48e6d0
push 4
push str.url
lea ecx, [ebx + 0x6c]
call fcn.00402e60
lea eax, [ebx + 0x6c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403190
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x48e720
lea eax, [ebx + 0x48]
lea ecx, [ebp - 0x4c]
cmp ecx, eax
je 0x48e70a
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x48e6f7
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00402e60
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x48e720
push 4
push str.err
lea ecx, [ebp - 0x4c]
call fcn.00402e60
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x48e756
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
cmp ecx, 8
cmovae eax, edx
cmp word [eax], 0x23
je 0x48e744
cmp ecx, 8
lea eax, [ebp - 0x4c]
cmovae eax, edx
cmp word [eax], 0x2a
jne 0x48e756
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401570
add esp, 8
jmp 0x48e76e
mov eax, dword [ebx]
test eax, eax
je 0x48e744
push eax
lea eax, [ebp - 0x30]
push str.lnk_d
push eax
call fcn.004014d0
add esp, 0xc
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x48e7a8
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48e79e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ee6c
push edx
push ecx
call fcn.0053140c
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov esi, dword [ebp - 0x58]
mov eax, dword [0x5b857c]
cmp eax, dword [esi + 8]
jg 0x48eefd
push 1
lea eax, [ebp - 0x30]
mov ecx, 0x5b8550
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0046f410
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x48e821
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48e817
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ee6c
push edx
push ecx
call fcn.0053140c
add esp, 8
mov eax, dword [0x5b857c]
cmp eax, dword [esi + 8]
jg 0x48ef3d
lea eax, [ebp - 0xdc]
mov ecx, 0x5b8550
push eax
call fcn.00470ac0
push 7
test al, al
jne 0x48e885
push str._s:err
lea ecx, [ebp - 0xdc]
call fcn.00402e60
mov eax, dword [0x5b857c]
cmp eax, dword [esi + 8]
jg 0x48ef7d
lea eax, [ebp - 0xdc]
mov ecx, 0x5b8550
push eax
call fcn.00470ac0
test al, al
je 0x48e90b
push 7
xor eax, eax
mov dword [ebp - 4], 7
push str.hk_icon
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], eax
mov word [ebp - 0x18], ax
call fcn.00402e60
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00434340
mov edx, dword [ebp - 4]
mov esi, eax
cmp edx, 8
jb 0x48e8e9
mov ecx, dword [ebp - 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48e8df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ee6c
push edx
push ecx
call fcn.0053140c
add esp, 8
xor eax, eax
mov dword [ebp - 8], 0
mov word [ebp - 0x18], ax
mov ecx, esi
lea eax, [ebp - 0xdc]
mov dword [ebp - 4], 7
push eax
call fcn.0042b5b0
push 7
xor eax, eax
mov dword [ebp - 8], 0
push str.hk_name
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
call fcn.00402e60
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00434340
mov edx, dword [ebp - 4]
mov esi, eax
cmp edx, 8
jb 0x48e975
mov ecx, dword [ebp - 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48e96b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ee6c
push edx
push ecx
call fcn.0053140c
add esp, 8
xor eax, eax
mov dword [ebp - 8], 0
mov word [ebp - 0x18], ax
mov ecx, esi
mov dword [ebp - 4], 7
lea eax, [ebx + 0x18]
mov edx, dword [esi]
push eax
call dword [edx + 0x154]
xor eax, eax
cmp dword [ebx + 0xbc], eax
je 0x48e9ff
push 5
push 0x57ef24
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
call fcn.00402e60
push 0
lea ecx, [esi + 0x3a8]
call fcn.004327d0
lea ecx, [ebp - 0x7c]
cmp eax, ecx
je 0x48e9e5
cmp dword [ebp - 0x68], 8
push dword [ebp - 0x6c]
cmovae ecx, dword [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.00402e60
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x2c]
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x48ea9f
mov ecx, dword [ebp - 0x7c]
jmp 0x48ea70
push 3
push 0x57ef30
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
call fcn.00402e60
push 0
lea ecx, [esi + 0x3a8]
call fcn.004327d0
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x48ea59
cmp dword [ebp - 0x80], 8
push dword [ebp - 0x84]
cmovae ecx, dword [ebp - 0x94]
push ecx
mov ecx, eax
call fcn.00402e60
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x2c]
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x48ea9f
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48ea95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ee6c
push edx
push ecx
call fcn.0053140c
add esp, 8
movzx eax, word [ebx + 0xb8]
test ax, ax
je 0x48edab
mov ebx, eax
mov dword [ebp - 0x20], 0
push 7
xor eax, eax
movzx esi, bl
push str.hk_text
lea ecx, [ebp - 0x30]
shr ebx, 8
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00402e60
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push eax
call fcn.00434340
mov edx, dword [ebp - 0x1c]
mov edi, eax
cmp edx, 8
jb 0x48eb22
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48eb18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ee6c
push edx
push ecx
call fcn.0053140c
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
test bl, 2
je 0x48eb58
push 7
push str.Ctrl_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 4
je 0x48eb6c
push 8
push str.Shift_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 1
je 0x48eb80
push 6
push str.Alt_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 8
je 0x48eb94
push 6
push str.Win_
lea ecx, [ebp - 0x18]
call fcn.00402350
push 0x80
lea eax, [ebp - 0x15c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ecx, eax
shl ecx, 0x10
or ecx, 1
cmp esi, 0x20
jne 0x48ebdd
push str.Space
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x48ebfb
lea eax, [esi - 0x21]
cmp eax, 0xe
lea eax, [ebp - 0x15c]
push 0x40
push eax
ja 0x48ebf4
or ecx, 0x1000000
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea ecx, [ebp - 0x15c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48ec04
sub ecx, edx
lea eax, [ebp - 0x15c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00402350
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
call dword [eax + 0x154]
mov edx, dword [ebp - 4]
cmp edx, 8
jb 0x48ec6b
mov ecx, dword [ebp - 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48ec61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ee6c
push edx
push ecx
call fcn.0053140c
add esp, 8
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0xbc], 0
je 0x48ed00
push 5
xor eax, eax
mov dword [ebp - 0x9c], 0
push 0x57ef24
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
call fcn.00402e60
push 0
lea ecx, [edi + 0x3a8]
call fcn.004327d0
lea ecx, [ebp - 0xac]
cmp eax, ecx
je 0x48ecdd
cmp dword [ebp - 0x98], 8
push dword [ebp - 0x9c]
cmovae ecx, dword [ebp - 0xac]
push ecx
mov ecx, eax
call fcn.00402e60
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x2c]
mov edx, dword [ebp - 0x98]
cmp edx, 8
jb 0x48edab
mov ecx, dword [ebp - 0xac]
jmp 0x48ed7c
push 3
xor eax, eax
mov dword [ebp - 0xb4], 0
push 0x57ef30
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
call fcn.00402e60
push 0
lea ecx, [edi + 0x3a8]
call fcn.004327d0
lea ecx, [ebp - 0xc4]
cmp eax, ecx
je 0x48ed62
cmp dword [ebp - 0xb0], 8
push dword [ebp - 0xb4]
cmovae ecx, dword [ebp - 0xc4]
push ecx
mov ecx, eax
call fcn.00402e60
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x2c]
mov edx, dword [ebp - 0xb0]
cmp edx, 8
jb 0x48edab
mov ecx, dword [ebp - 0xc4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48eda1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ee6c
push edx
push ecx
call fcn.0053140c
add esp, 8
mov edi, dword [ebp - 0x50]
push dword [ebp - 0x34]
mov ecx, dword [edi + 0x258]
mov eax, dword [ecx]
call dword [eax + 0x160]
mov edx, dword [ebp - 0xc8]
cmp edx, 8
jb 0x48edff
mov ecx, dword [ebp - 0xdc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48edf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ee6c
push edx
push ecx
call fcn.0053140c
add esp, 8
mov esi, dword [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 7
mov word [ebp - 0xdc], ax
test esi, esi
je 0x48ee44
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x48ee44
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x48ee44
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [ebp - 0x54]
inc ebx
mov dword [ebp - 0x54], ebx
cmp ebx, dword [ebp - 0x5c]
jge 0x48ee58
mov ecx, dword [ebp - 0x58]
jmp 0x48e530
mov ecx, dword [edi + 0x258]
push 0
mov eax, dword [ecx]
call dword [eax + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0055d660
push 0x5b851c
call fcn.00531854
add esp, 4
cmp dword [0x5b851c], 0xffffffff
jne 0x48e541
push 8
mov dword [0x5b8508], 0
mov dword [0x5b850c], 0
mov dword [0x5b8510], 0
mov dword [0x5b8514], 0
mov dword [0x5b8518], 0
call fcn.005313dc
mov dword [0x5b8508], eax
push 0x577850
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [0x5b8508]
mov dword [eax], 0x5b8508
call fcn.00531682
push 0x5b851c
call fcn.0053180a
add esp, 0xc
jmp 0x48e541
push 0x5b857c
call fcn.00531854
add esp, 4
cmp dword [0x5b857c], 0xffffffff
jne 0x48e7d0
mov ecx, 0x5b8550
call fcn.0046c4e0
push 0x577860
call fcn.00531682
push 0x5b857c
call fcn.0053180a
add esp, 8
jmp 0x48e7d0
push 0x5b857c
call fcn.00531854
add esp, 4
cmp dword [0x5b857c], 0xffffffff
jne 0x48e832
mov ecx, 0x5b8550
call fcn.0046c4e0
push 0x577860
call fcn.00531682
push 0x5b857c
call fcn.0053180a
add esp, 8
jmp 0x48e832
push 0x5b857c
call fcn.00531854
add esp, 4
cmp dword [0x5b857c], 0xffffffff
jne 0x48e86a
mov ecx, 0x5b8550
call fcn.0046c4e0
push 0x577860
call fcn.00531682
push 0x5b857c
call fcn.0053180a
add esp, 8
jmp 0x48e86a