Function at 0x404fe0
Capabilities:
Create process on windows
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c982
push eax
mov eax, dword [0x425430]
mov dword fs:[0], esp
sub esp, 0x468
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jle 0x405019
cmp dword [0x42542c], ebx
jle 0x405019
cmp dword [0x425458], ebx
je 0x40502a
push ebx
call fcn.00405f20
add esp, 4
test eax, eax
je 0x4054b2
call fcn.00407060
mov esi, eax
call fcn.00407070
cmp esi, ebx
mov edi, eax
je 0x40549e
cmp byte [esi], bl
je 0x40549e
mov eax, dword [0x423d4c]
mov dword [esp + 0xc], eax
push str.LITHTECH.EXE
lea ecx, [esp + 0x10]
mov dword [esp + 0x480], ebx
call fcn.0041592a
push str.__windowtitle__
lea ecx, [esp + 0x10]
call fcn.00415aa3
push 0x4253f0
lea ecx, [esp + 0x10]
call fcn.00415aca
push 0x4232d0
lea ecx, [esp + 0x10]
call fcn.00415aa3
push str.__rez
lea ecx, [esp + 0x10]
call fcn.00415aa3
push esi
lea ecx, [esp + 0x10]
call fcn.00415aa3
cmp edi, ebx
je 0x4050c8
cmp byte [edi], bl
je 0x4050c8
push str.__rez
lea ecx, [esp + 0x10]
call fcn.00415aa3
push edi
lea ecx, [esp + 0x10]
call fcn.00415aa3
push str.__rez
lea ecx, [esp + 0x10]
call fcn.00415aa3
push 0x425370
lea ecx, [esp + 0x10]
call fcn.00415aca
push str.2.rez
lea ecx, [esp + 0x10]
call fcn.00415aa3
push str.__rez
lea ecx, [esp + 0x10]
call fcn.00415aa3
push 0x425370
lea ecx, [esp + 0x10]
call fcn.00415aca
push str.dll.rez
lea ecx, [esp + 0x10]
call fcn.00415aa3
push str.__rez
lea ecx, [esp + 0x10]
call fcn.00415aa3
push 0x425370
lea ecx, [esp + 0x10]
call fcn.00415aca
push str.l.rez
lea ecx, [esp + 0x10]
call fcn.00415aa3
push str.__rez_custom
lea ecx, [esp + 0x10]
call fcn.00415aa3
mov ecx, dword [0x425398]
cmp dword [ecx - 8], ebx
je 0x40517b
push 0x423540
lea ecx, [esp + 0x10]
call fcn.00415aa3
push 0x425398
lea ecx, [esp + 0x10]
call fcn.00415aca
mov edx, dword [0x425240]
cmp dword [edx - 8], ebx
je 0x4051a2
push 0x423540
lea ecx, [esp + 0x10]
call fcn.00415aa3
push 0x425240
lea ecx, [esp + 0x10]
call fcn.00415aca
cmp dword [esp + 0x488], ebx
je 0x4051b2
push str._multiplayer_1
jmp 0x4051b7
push str._multiplayer_0
lea ecx, [esp + 0x10]
call fcn.00415aa3
lea eax, [esp + 0x14]
push eax
call fcn.00406680
add esp, 4
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x47c], 1
cmp dword [ecx - 8], ebx
je 0x4051fa
push 0x423540
lea ecx, [esp + 0x10]
call fcn.00415aa3
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
call fcn.00415aca
cmp dword [0x425420], ebx
je 0x405254
mov ecx, dword [0x425410]
cmp ecx, ebx
je 0x405254
lea eax, [esp + 0x10]
push eax
call fcn.004033d0
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x47c], 2
cmp dword [ecx - 8], ebx
je 0x405243
push 0x423540
lea ecx, [esp + 0x10]
call fcn.00415aa3
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
call fcn.00415aca
lea ecx, [esp + 0x10]
mov byte [esp + 0x47c], 1
call fcn.00415831
lea eax, [esp + 0x1c]
push eax
call fcn.00407720
add esp, 4
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x47c], 3
cmp dword [ecx - 8], ebx
je 0x40528e
push 0x423540
lea ecx, [esp + 0x10]
call fcn.00415aa3
lea edx, [esp + 0x1c]
lea ecx, [esp + 0xc]
push edx
call fcn.00415aca
lea eax, [esp + 0x18]
push eax
call fcn.00401d30
add esp, 4
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x47c], 4
cmp dword [ecx - 8], ebx
je 0x4052ba
lea edx, [esp + 0x18]
lea ecx, [esp + 0xc]
push edx
call fcn.00415aca
cmp dword [0x425424], ebx
je 0x40530b
mov eax, dword [0x423d4c]
mov dword [esp + 0x10], eax
mov ecx, dword [0x425434]
lea edx, [esp + 0x10]
push ecx
push str._PerformanceLevel__i
push edx
mov byte [esp + 0x488], 5
call fcn.00414945
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.00415aca
lea ecx, [esp + 0x10]
mov byte [esp + 0x47c], 4
call fcn.00415831
push 0x423540
lea ecx, [esp + 0x10]
call fcn.00415aa3
mov ecx, dword [esp + 0x484]
push ecx
lea ecx, [esp + 0x10]
call fcn.00415aa3
push 0x423540
lea ecx, [esp + 0x10]
call fcn.00415aa3
push 0x425264
lea ecx, [esp + 0x10]
call fcn.00415aca
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
test edx, 0x80000000
je 0x405375
mov eax, dword [esp + 0xc]
push 1
push str.Command_Line_String
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x405409
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KeRNeL32.dll_GetStartupInfoA]
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4234f0
mov eax, ecx
mov esi, edi
mov edi, edx
push str.nolfcmds.txt
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040afce
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x405409
lea ecx, [esp + 0x74]
push ecx
push esi
call fcn.0040b1d7
push esi
call fcn.0040ae28
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x30]
push edx
push eax
push ebx
push ebx
push 0x4000200
push ebx
push ebx
push ebx
push str.lithtech.exe__cmdfile_nolfcmds.txt
push ebx
call dword [sym.imp.KeRNeL32.dll_CreateProcessA]
test eax, eax
jne 0x405451
mov ecx, dword [0x425394]
push 0x30
push ecx
push 6
push ebx
call fcn.00404f40
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x47c], 3
call fcn.00415831
lea ecx, [esp + 0x1c]
mov byte [esp + 0x47c], 1
call fcn.00415831
lea ecx, [esp + 0x14]
mov byte [esp + 0x47c], bl
call fcn.00415831
lea ecx, [esp + 0xc]
mov dword [esp + 0x47c], 0xffffffff
call fcn.00415831
jmp 0x4054b2
lea ecx, [esp + 0x18]
mov byte [esp + 0x47c], 3
call fcn.00415831
lea ecx, [esp + 0x1c]
mov byte [esp + 0x47c], 1
call fcn.00415831
lea ecx, [esp + 0x14]
mov byte [esp + 0x47c], bl
call fcn.00415831
lea ecx, [esp + 0xc]
mov dword [esp + 0x47c], 0xffffffff
call fcn.00415831
mov eax, 1
jmp 0x4054b4
mov edx, dword [0x425394]
push 0x30
push edx
push 0x11
push ebx
call fcn.00404f40
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x474
ret