Function at 0x4d01c0
Capabilities:
Check if file exists
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [esi + 0x70]
cmp dword [edi], ecx
jne 0x4d0553
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], 5
mov dword [ebp - 0x228], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x224], 0x104
cmp eax, 0xfffffe62
ja 0x4d0461
je 0x4d03f9
cmp eax, 0xfffffe34
je 0x4d02cc
cmp eax, 0xfffffe38
je 0x4d02b1
cmp eax, 0xfffffe39
jne 0x4d0553
mov eax, dword [edi + 0x3c]
mov ecx, esi
push eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], 0x22
call fcn.004cf2f0
cmp eax, 2
jne 0x4d0553
mov eax, dword [edi + 0xc]
cmp eax, 1
jne 0x4d0287
push 4
push 4
push dword [edi + 0x3c]
lea ecx, [esi + 0x64]
call fcn.004f8980
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x4d0553
push 3
push 3
push dword [edi + 0x3c]
lea ecx, [esi + 0x64]
call fcn.004f8980
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 4
push edi
lea ecx, [esi + 0x64]
call fcn.004f7720
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x1c], 0
je 0x4d0553
push dword [edi + 0x10]
mov ecx, esi
call fcn.004cf2f0
test eax, eax
je 0x4d0553
cmp dword [edi + 0x30], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
je 0x4d03b4
lea ecx, [esi + 0x64]
call fcn.004cf4b0
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0x113e
push dword [esi + 0x70]
call ebx
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [edi + 0x30]
mov ecx, ebx
push 0xffffffffffffffff
push dword [ebp - 0x228]
mov dword [ebp - 0x210], eax
call fcn.00410ff0
cmp eax, 0xffffffff
je 0x4d0354
push dword [edi + 0x1c]
mov ecx, ebx
push dword [ebp - 0x210]
push eax
call fcn.004c4190
mov dword [ebp - 0x238], 0x22
cmp dword [ebx + 0x14], 8
jb 0x4d0366
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d0387
mov dword [ebp - 0x220], 5
mov dword [ebp - 0x21c], 5
jmp 0x4d039b
mov dword [ebp - 0x220], 6
mov dword [ebp - 0x21c], 6
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x238]
push eax
push 0
push 0x113f
push dword [esi + 0x70]
call ebx
lea eax, [edi + 0xc]
push eax
push 0
push 0x113f
push dword [esi + 0x70]
call ebx
push 1
push 1
push 0
push 0
push 0x110a
push dword [esi + 0x70]
mov byte [esi + 0xe4], 1
call ebx
push eax
lea ecx, [esi + 0x64]
call fcn.004f8980
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, dword [edi + 0x14]
jne 0x4d0416
lea eax, [esi + 0xb4]
jmp 0x4d0421
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4d0553
cmp dword [eax + 0x14], 8
jb 0x4d0444
mov ecx, dword [eax]
mov dword [edi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [edi + 0x10], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 4
mov ecx, eax
mov dword [edi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [edi + 0x10], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xfffffe64
je 0x4d048a
cmp eax, 0xfffffffd
jne 0x4d0553
mov ecx, esi
call fcn.004d0570
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 4
movzx eax, word [edi + 0xc]
cmp eax, 0x2e
jne 0x4d04cf
push 0
push 9
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov ecx, esi
call fcn.004cf2f0
cmp eax, 1
je 0x4d04c8
cmp eax, 2
je 0x4d04c8
cmp eax, 3
jne 0x4d0553
push 0xc2b
jmp 0x4d054c
push 0xc2a
jmp 0x4d054c
cmp eax, 0xd
jne 0x4d0512
push 0
push 9
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov ecx, esi
push edi
call fcn.004cf2f0
cmp eax, 3
je 0x4d0471
push edi
lea ecx, [esi + 0x64]
call fcn.004d2290
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x26
jne 0x4d052a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x4d0553
push 0xc2e
jmp 0x4d054c
cmp eax, 0x28
jne 0x4d0542
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x4d0553
push 0xc2f
jmp 0x4d054c
cmp eax, 0x71
jne 0x4d0553
push 0xc27
mov ecx, esi
call fcn.004d0850
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052c233
mov esp, ebp
pop ebp
ret 4