Function at 0x417901
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4238f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x20]
call fcn.00401068
and dword [ebp - 4], 0
and dword [ebp - 0x48], 0
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp + 0x10]
and dword [eax], 0
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x504], 0
jne 0x417962
mov byte [ebp - 0x5d], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004010a3
mov al, byte [ebp - 0x5d]
jmp 0x4180f1
mov edx, dword [ebp - 0x68]
add edx, 0x5718
mov ecx, dword [ebp - 0x68]
call fcn.00410cc8
movzx eax, al
test eax, eax
je 0x4180de
call fcn.004137bf
mov ecx, dword [ebp - 0x68]
sub eax, dword [ecx + 0x576c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x2a30
jae 0x41799e
mov byte [ebp + 0x14], 0
jmp 0x4179a2
mov byte [ebp + 0x14], 1
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x417b5c
call fcn.004137bf
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0x576c], eax
push 1
push 0x200000
lea ecx, [ebp - 0x20]
call fcn.004105e1
lea ecx, [ebp - 0x20]
call fcn.00401000
mov dword [ebp - 0x48], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x508]
mov dword [ebp - 0x2c], eax
push 0x14
lea eax, [ebp - 0x44]
push eax
call fcn.0040103d
pop ecx
pop ecx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x20]
call fcn.0040100f
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
push 0x41739a
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x417a3b
jmp 0x417a9b
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x68]
push dword [ecx + eax + 0x290]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x102
je 0x417a66
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x417a92
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + eax + 0x294]
inc eax
mov ecx, dword [ebp - 0x2c]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x68]
mov dword [edx + ecx + 0x294], eax
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
movzx eax, byte [ebp - 0x34]
test eax, eax
je 0x417b03
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x508], ecx
mov byte [ebp - 0xd], 1
cmp dword [ebp - 0x48], 0
jle 0x417b01
call fcn.004137bf
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0x576c], eax
push 0
push 0x20
push str.AdjustKernelTableFromSSDTSpace2
push dword [ebp - 0x48]
lea ecx, [ebp - 0x20]
call fcn.0040100f
mov edx, eax
mov ecx, dword [ebp - 0x68]
call fcn.004182f9
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040100f
mov edx, eax
mov ecx, dword [ebp - 0x68]
call fcn.00417428
jmp 0x417b1b
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x2c]
xor edx, edx
div dword [ecx + 0x504]
mov dword [ebp - 0x2c], edx
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x417b35
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax + 0x508]
jne 0x4179e6
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x417b52
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x58b0]
inc eax
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0x58b0], eax
jmp 0x417b5c
mov eax, dword [ebp - 0x68]
and dword [eax + 0x58b0], 0
and dword [ebp - 0x28], 0
jmp 0x417b69
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x2b78]
jge 0x417d59
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ecx + eax + 0x87c]
jne 0x417d54
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + eax + 0x984], 0
jle 0x417d54
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + eax + 0x984], 0x10
jge 0x417d54
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + eax + 0x884]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + eax + 0x888]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + eax + 0x88c]
mov dword [ecx], eax
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x417d17
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + eax + 0x984]
dec eax
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x118
mov edx, dword [ebp - 0x68]
mov dword [edx + ecx + 0x984], eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + eax + 0x984]
shl eax, 4
push eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x894]
push eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x884]
push eax
call fcn.004026b0
add esp, 0xc
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x878]
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x118
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + ecx + 0x984]
shl ecx, 4
and dword [eax + ecx + 0xc], 0
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x878]
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x118
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + ecx + 0x984]
shl ecx, 4
and dword [eax + ecx + 0x10], 0
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x878]
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x118
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + ecx + 0x984]
shl ecx, 4
and dword [eax + ecx + 0x14], 0
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
mov byte [ecx + eax + 0x890], 1
mov edx, dword [ebp - 0x68]
add edx, 0x5718
mov ecx, dword [ebp - 0x68]
call fcn.00410c93
mov byte [ebp - 0x5e], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004010a3
mov al, byte [ebp - 0x5e]
jmp 0x4180f1
jmp 0x417b62
and dword [ebp - 0x28], 0
jmp 0x417d66
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x4e7c]
jge 0x41803d
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ecx + eax + 0x2b80]
jne 0x418038
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + eax + 0x2c88], 0
jle 0x418038
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + eax + 0x2c88], 0x10
jge 0x418038
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + eax + 0x2b88]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + eax + 0x2b8c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + eax + 0x2b90]
mov dword [ecx], eax
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x417f19
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + eax + 0x2c88]
dec eax
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x118
mov edx, dword [ebp - 0x68]
mov dword [edx + ecx + 0x2c88], eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + eax + 0x2c88]
shl eax, 4
push eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x2b98]
push eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x2b88]
push eax
call fcn.004026b0
add esp, 0xc
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x2b7c]
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x118
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + ecx + 0x2c88]
shl ecx, 4
and dword [eax + ecx + 0xc], 0
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x2b7c]
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x118
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + ecx + 0x2c88]
shl ecx, 4
and dword [eax + ecx + 0x10], 0
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x2b7c]
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x118
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + ecx + 0x2c88]
shl ecx, 4
and dword [eax + ecx + 0x14], 0
jmp 0x41800f
push 0x10
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x2b88]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004026b0
add esp, 0xc
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + eax + 0x2b8c]
mov ecx, dword [ebp - 0x68]
call fcn.00417318
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
push dword [ecx + eax + 0x2b8c]
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x2b88]
push eax
push dword [ebp - 0x5c]
call fcn.004026b0
add esp, 0xc
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + eax + 0x2c88]
shl eax, 4
push eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x2b98]
push eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x2b88]
push eax
call fcn.004026b0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + eax + 0x2b7c]
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x118
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + ecx + 0x2c88]
dec ecx
shl ecx, 4
lea eax, [eax + ecx + 0xc]
push eax
call fcn.004026b0
add esp, 0xc
mov edx, dword [ebp - 0x68]
add edx, 0x5718
mov ecx, dword [ebp - 0x68]
call fcn.00410c93
mov byte [ebp - 0x5f], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004010a3
mov al, byte [ebp - 0x5f]
jmp 0x4180f1
jmp 0x417d5f
cmp dword [ebp - 0x6c], 0xff00aaee
jne 0x418054
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax + 0x5778]
test eax, eax
je 0x41806b
cmp dword [ebp - 0x6c], 0xff00bb00
jne 0x4180cd
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax + 0x5778]
test eax, eax
je 0x4180cd
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x5770], 0
je 0x4180cd
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx + 0x5770]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx + 0x5774]
mov dword [eax], ecx
mov eax, dword [ebp - 0x68]
and dword [eax + 0x5770], 0
mov eax, dword [ebp - 0x68]
and dword [eax + 0x5774], 0
mov edx, dword [ebp - 0x68]
add edx, 0x5718
mov ecx, dword [ebp - 0x68]
call fcn.00410c93
mov byte [ebp - 0x60], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004010a3
mov al, byte [ebp - 0x60]
jmp 0x4180f1
mov edx, dword [ebp - 0x68]
add edx, 0x5718
mov ecx, dword [ebp - 0x68]
call fcn.00410c93
mov byte [ebp - 0x61], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004010a3
mov al, byte [ebp - 0x61]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x14