Function at 0x402f50
Capabilities:
Create thread
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e87e
mov eax, dword fs:[0]
push eax
sub esp, 0x8f0
mov eax, dword [0x4294c0]
xor eax, esp
mov dword [esp + 0x8e8], eax
push esi
mov eax, dword [0x4294c0]
xor eax, esp
push eax
lea eax, [esp + 0x8f8]
mov dword fs:[0], eax
mov dword [0x42ba3c], 0
mov dword [0x42ba40], 0
mov dword [0x42ba44], 0
call fcn.00402410
lea ecx, [esp + 0x6c]
call fcn.00402d40
mov dword [esp + 0x900], 0
call fcn.00402590
test al, al
jne 0x40329e
push str.key.exe
lea edx, [esp + 0x70]
lea ecx, [esp + 0x10]
call fcn.00408930
add esp, 4
mov edx, eax
mov byte [esp + 0x900], 1
mov ecx, 0x65
call fcn.004027b0
mov byte [esp + 0x900], 0
cmp dword [esp + 0x20], 0x10
jb 0x403016
push dword [esp + 0xc]
call fcn.0040a00c
add esp, 4
push str.key.dll
lea edx, [esp + 0x70]
lea ecx, [esp + 0x10]
call fcn.00408930
add esp, 4
mov edx, eax
mov byte [esp + 0x900], 2
mov ecx, 0x66
call fcn.004027b0
mov byte [esp + 0x900], 0
cmp dword [esp + 0x20], 0x10
jb 0x40305a
push dword [esp + 0xc]
call fcn.0040a00c
add esp, 4
push str.key.exe
lea edx, [esp + 0x70]
lea ecx, [esp + 0x40]
call fcn.00408930
add esp, 4
push 0x4259d8
mov edx, eax
mov byte [esp + 0x904], 3
lea ecx, [esp + 0x28]
call fcn.004087a0
add esp, 4
push 0x4259cc
mov edx, eax
mov byte [esp + 0x904], 4
lea ecx, [esp + 0x10]
call fcn.004087a0
add esp, 4
mov ecx, eax
call fcn.00402ca0
cmp dword [esp + 0x20], 0x10
jb 0x4030bf
push dword [esp + 0xc]
call fcn.0040a00c
add esp, 4
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jb 0x4030e7
push dword [esp + 0x24]
call fcn.0040a00c
add esp, 4
mov byte [esp + 0x900], 0
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jb 0x403117
push dword [esp + 0x3c]
call fcn.0040a00c
add esp, 4
push str.key.exe
lea edx, [esp + 0x70]
lea ecx, [esp + 0x10]
call fcn.00408930
add esp, 4
mov ecx, eax
mov byte [esp + 0x900], 5
call fcn.00402a70
mov byte [esp + 0x900], 0
cmp dword [esp + 0x20], 0x10
jb 0x403156
push dword [esp + 0xc]
call fcn.0040a00c
add esp, 4
push 0x64
lea eax, [esp + 0x88]
push 0
push eax
call fcn.0040ddc0
add esp, 0xc
mov dword [esp + 0x38], 0xf
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
push 0x28
push 0x4259dc
call fcn.00407b40
mov byte [esp + 0x900], 6
lea ecx, [esp + 0x3c]
push 8
push 0x425a08
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call fcn.00407b40
sub esp, 0x10
mov byte [esp + 0x910], 7
lea eax, [esp + 0x34]
lea ecx, [esp + 0x94]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00401d70
cmp dword [esp + 0x50], 0x10
jb 0x4031f0
push dword [esp + 0x3c]
call fcn.0040a00c
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x900], 0xa
cmp dword [esp + 0x38], 0x10
jb 0x403220
push dword [esp + 0x24]
call fcn.0040a00c
add esp, 4
lea ecx, [esp + 0x84]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.00402120
test al, al
je 0x4032fa
push 0x13
push str.shutdown__r__f__t_0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00407b40
lea ecx, [esp + 0xc]
call fcn.00402ca0
cmp dword [esp + 0x20], 0x10
jb 0x40328a
push dword [esp + 0xc]
call fcn.0040a00c
add esp, 4
lea ecx, [esp + 0x84]
mov byte [esp + 0x900], 0
call fcn.00402080
push str.key.dll
lea edx, [esp + 0x70]
lea ecx, [esp + 0x58]
call fcn.00408930
add esp, 4
mov byte [esp + 0x900], 0xb
lea eax, [esp + 0x54]
cmp dword [esp + 0x68], 0x10
cmovae eax, dword [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x42ba3c], eax
test eax, eax
jne 0x403301
mov esi, dword [sym.imp.KERNEL32.dll_Beep]
push 0x37
push 0x15b3
call esi
push 0x37
push 0x15b3
call esi
push 0x37
push 0x15b3
call esi
push 0
call fcn.0040b00e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.interception_create_context
push eax
call esi
push str.interception_destroy_context
push dword [0x42ba3c]
mov dword [0x42b9d0], eax
call esi
push str.interception_get_precedence
push dword [0x42ba3c]
mov dword [0x42b9d4], eax
call esi
push str.interception_set_precedence
push dword [0x42ba3c]
mov dword [0x42ba00], eax
call esi
push str.interception_get_filter
push dword [0x42ba3c]
mov dword [0x42b9c4], eax
call esi
push str.interception_set_filter
push dword [0x42ba3c]
mov dword [0x42b9e0], eax
call esi
push str.interception_wait
push dword [0x42ba3c]
mov dword [0x42b9b4], eax
call esi
push str.interception_wait_with_timeout
push dword [0x42ba3c]
mov dword [0x42ba08], eax
call esi
push str.interception_send
push dword [0x42ba3c]
mov dword [0x42ba0c], eax
call esi
push str.interception_receive
push dword [0x42ba3c]
mov dword [0x42b9b8], eax
call esi
push str.interception_get_hardware_id
push dword [0x42ba3c]
mov dword [0x42b9c8], eax
call esi
push str.interception_is_invalid
push dword [0x42ba3c]
mov dword [0x42b9d8], eax
call esi
push str.interception_is_keyboard
push dword [0x42ba3c]
mov dword [0x42ba10], eax
call esi
push str.interception_is_mouse
push dword [0x42ba3c]
mov dword [0x42ba04], eax
call esi
mov ecx, dword [0x42b9d0]
mov dword [0x42b9b0], eax
test ecx, ecx
je 0x4035ba
cmp dword [0x42b9d4], 0
je 0x4035ba
cmp dword [0x42ba00], 0
je 0x4035ba
cmp dword [0x42b9c4], 0
je 0x4035ba
cmp dword [0x42b9e0], 0
je 0x4035ba
cmp dword [0x42b9b4], 0
je 0x4035ba
cmp dword [0x42ba08], 0
je 0x4035ba
cmp dword [0x42ba0c], 0
je 0x4035ba
cmp dword [0x42b9b8], 0
je 0x4035ba
cmp dword [0x42b9c8], 0
je 0x4035ba
cmp dword [0x42b9d8], 0
je 0x4035ba
cmp dword [0x42ba10], 0
je 0x4035ba
cmp dword [0x42ba04], 0
je 0x4035ba
test eax, eax
je 0x4035ba
call ecx
mov dword [0x42ba14], eax
call dword [0x42b9d0]
mov dword [0x42b9cc], eax
xor esi, esi
push esi
call dword [0x42b9b0]
add esp, 4
test eax, eax
je 0x4034f3
push 0x400
lea eax, [esp + 0xf0]
push eax
push esi
push dword [0x42ba14]
call dword [0x42b9d8]
add esp, 0x10
test eax, eax
jne 0x4034fb
inc esi
cmp esi, 0x14
jl 0x4034c4
jmp 0x403501
mov dword [0x42b9e8], esi
xor esi, esi
push esi
call dword [0x42ba04]
add esp, 4
test eax, eax
je 0x403532
push 0x400
lea eax, [esp + 0x4f0]
push eax
push esi
push dword [0x42ba14]
call dword [0x42b9d8]
add esp, 0x10
test eax, eax
jne 0x40353a
inc esi
cmp esi, 0x14
jl 0x403503
jmp 0x403540
mov dword [0x42b9dc], esi
push 0xffff
push dword [0x42b9b0]
push dword [0x42ba14]
call dword [0x42b9b4]
add esp, 0xc
push 0xffff
push dword [0x42ba04]
push dword [0x42b9cc]
call dword [0x42b9b4]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0xc
push 0
push 0
push 0
push 0x403630
push 0
push 0
call esi
push 0
push 0
push 0
push 0x403740
push 0
push 0
mov dword [0x42ba40], eax
call esi
lea ecx, [esp + 0x54]
mov dword [0x42ba44], eax
call fcn.00406af0
lea ecx, [esp + 0x6c]
call fcn.00406af0
jmp 0x403604
push dword [0x42ba3c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x68], 0x10
jb 0x4035d9
push dword [esp + 0x54]
call fcn.0040a00c
add esp, 4
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
jb 0x403604
push dword [esp + 0x6c]
call fcn.0040a00c
add esp, 4
mov eax, 0x42ba3c
mov ecx, dword [esp + 0x8f8]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x8e8]
xor ecx, esp
call fcn.0040a011
mov esp, ebp
pop ebp
ret