Function at 0x403fe6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
and dword [ebp - 0x118], 0
and dword [ebp - 0x194], 0
and dword [ebp - 0x114], 0
and dword [ebp - 4], 0
and dword [ebp - 0x198], 0
push 0x74
push 0
lea eax, [ebp - 0x190]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00402ff0
mov dword [ebp - 0x194], eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x194]
sub eax, dword [ebp - 0x198]
mov dword [ebp - 0x114], eax
push str.KeInsertQueueApc
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x184], eax
push str.KeInitializeApc
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x188], eax
push str.MmFlushImageSection
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x17c], eax
push str.IoGetAttachedDevice
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x178], eax
push str.PsTerminateSystemThread
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x118], eax
and dword [ebp - 0x19c], 0
jmp 0x4040e4
mov eax, dword [ebp - 0x19c]
inc eax
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0x100
jae 0x404137
mov eax, dword [ebp - 0x118]
movsx eax, byte [eax]
cmp eax, 0xffffffff
jne 0x404128
mov eax, dword [ebp - 0x118]
cmp dword [eax + 1], 0xe8500875
jne 0x404128
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 5]
mov ecx, dword [ebp - 0x118]
lea eax, [ecx + eax + 9]
mov dword [ebp - 0x18c], eax
jmp 0x404137
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
jmp 0x4040d7
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x118], eax
and dword [ebp - 0x1a0], 0
jmp 0x404159
mov eax, dword [ebp - 0x1a0]
inc eax
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0x100
jae 0x4041b2
mov eax, dword [ebp - 0x118]
movsx eax, byte [eax]
cmp eax, 0xffffffe8
jne 0x4041a3
mov eax, dword [ebp - 0x118]
mov eax, dword [eax - 3]
and eax, 0xfffff0ff
cmp eax, 0xe8284089
jne 0x4041a3
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 1]
mov ecx, dword [ebp - 0x118]
lea eax, [ecx + eax + 5]
mov dword [ebp - 0x180], eax
jmp 0x4041b2
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
jmp 0x40414c
push str.MmGetSystemRoutineAddress
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x190], eax
push 0xc
push dword [ebp - 0x18c]
lea eax, [ebp - 0x174]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0xc
push dword [ebp - 0x184]
lea eax, [ebp - 0x15c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0xc
push dword [ebp - 0x180]
lea eax, [ebp - 0x150]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0xc
push dword [ebp - 0x188]
lea eax, [ebp - 0x168]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0xc
push dword [ebp - 0x17c]
lea eax, [ebp - 0x144]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0xc
push dword [ebp - 0x178]
lea eax, [ebp - 0x138]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x190]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x18c]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x188]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x184]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x180]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x17c]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x178]
add eax, dword [ebp - 0x114]
mov dword [ebp - 0x178], eax
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x415b5c], 5
jne 0x404331
mov eax, dword [0x415b60]
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 1
je 0x404305
cmp dword [ebp - 0x1a4], 2
je 0x40431b
jmp 0x40432f
mov dword [ebp - 0x12c], 0x190
mov dword [ebp - 0x128], 0x22c
jmp 0x40432f
mov dword [ebp - 0x12c], 0x180
mov dword [ebp - 0x128], 0x224
jmp 0x404364
cmp dword [0x415b60], 0
jne 0x404350
mov dword [ebp - 0x12c], 0x168
mov dword [ebp - 0x128], 0x248
jmp 0x404364
mov dword [ebp - 0x12c], 0x188
mov dword [ebp - 0x128], 0x268
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x74
lea eax, [ebp - 0x190]
push eax
push 0x222407
push dword [0x413cec]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [ebp + 8], 0
je 0x4043aa
cmp dword [ebp + 0xc], 0
je 0x4043aa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x124]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x120]
mov dword [eax], ecx
leave
ret 8