Function at 0x405050
Capabilities:
Check for software breakpoints
Get os information via kuser_shared_data

Disassembly:
mov eax, 0x40a010
cld
cmp byte [eax], 0
mov edx, 0x40c050
je 0x405061
ret
cmp byte [eax + 1], 0
je 0x40506e
cmp byte [eax], 0
je 0x405067
jmp 0x405060
inc byte [eax + 1]
push ebx
push ebp
push esi
push edi
push eax
mov esi, 0x4052b3
sub eax, eax
mov edi, edx
push 0x405278
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xd
pop ecx
rep stosd dword es:[edi], eax
mov edi, edx
mov ecx, dword fs:[eax + 0x30]
mov edx, ds
test dl, 4
jne 0x405110
mov edx, 0x7ffe026c
mov ah, byte [edx]
cmp ah, 4
mov al, byte [edx + 4]
jb 0x4050b0
cmp ah, 5
jbe 0x4050b4
mov ax, 0x333
shl eax, 0x10
mov ax, 0x101
stosd dword es:[edi], eax
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x1c]
mov ebx, dword [eax + 8]
mov eax, 0x405338
call esi
stosd dword es:[edi], eax
mov eax, 0x40534e
call esi
test eax, eax
stosd dword es:[edi], eax
je 0x4050de
mov eax, 0x405410
stosd dword es:[edi], eax
mov eax, 0x405366
call esi
test eax, eax
stosd dword es:[edi], eax
je 0x4050f0
mov eax, 0x4054dc
stosd dword es:[edi], eax
mov eax, 0x40537a
call esi
test eax, eax
stosd dword es:[edi], eax
je 0x405102
mov eax, 0x40563b
stosd dword es:[edi], eax
mov eax, dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x405264
mov ax, 0x840a
mov ebx, 0xbff70000
cmp dl, 0x60
mov edx, 0x5058454b
jae 0x405125
mov al, 3
cmp dword [ebx + 0x1000], edx
je 0x40513f
cmp al, 0x5a
je 0x40513b
sub ebx, 0x10000
mov al, 0x5a
jmp 0x405125
sub ebx, ebx
jmp 0x405167
mov edx, dword [ebx + 0x1008]
test dl, 3
jne 0x40513b
cmp edx, ebx
jbe 0x40513b
push ecx
lea ecx, [ebx + 0x70000]
cmp edx, ecx
pop ecx
jae 0x40513b
mov ebp, edx
mov edx, dword [edx]
mov edx, dword [edx]
cmp dword [edx], 6
jne 0x405167
mov al, bl
shl eax, 0x10
mov ax, 0x101
push ecx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
pop ecx
xor eax, ecx
stosd dword es:[edi], eax
test ebx, ebx
je 0x405264
push 0x47
pop eax
call esi
stosd dword es:[edi], eax
mov eax, dword [edx + 0x68]
add eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edx + 0x6c]
add eax, ebx
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0x58]
add eax, ebx
lea ecx, [edi + 0x20]
push ecx
call eax
cmp byte [edi - 0xa], bl
jne 0x4051ab
sub ebp, 8
mov eax, dword [ebp + 0x30]
cmp eax, ebx
jae 0x4051b5
mov eax, dword [edi + 0x20]
mov dword [edi + 0x24], eax
mov eax, 0x4053cd
stosd dword es:[edi], eax
scasd eax, dword es:[edi]
mov eax, 0x405497
stosd dword es:[edi], eax
scasd eax, dword es:[edi]
mov eax, fcn.0040558b
stosd dword es:[edi], eax
mov eax, 0x405387
call esi
stosd dword es:[edi], eax
cmp eax, ebx
lea ebp, [ebx + 0x30000]
jb 0x4051f3
cmp eax, ebp
jae 0x4051f3
sub eax, 0xf1
push 0x5f
pop ecx
call fcn.00405292
test ecx, ecx
jne 0x405259
mov eax, 0x405399
call esi
cmp eax, ebx
jb 0x40522f
cmp eax, ebp
jae 0x40522f
push 0x48
pop ecx
add eax, 0x55
cmp dword [eax], ecx
je 0x40521a
add eax, 0xe
cmp dword [eax], ecx
je 0x40521a
add eax, 0x58
cmp dword [eax], ecx
jne 0x40522f
add eax, 0x19
mov cl, byte [eax - 5]
cmp cl, 0xe8
je 0x40522a
cmp cl, 0xcc
jne 0x40522f
add eax, dword [eax - 4]
jmp 0x405259
lea eax, [ebx + 0x24f00]
mov ecx, 0x2800
call fcn.00405292
test ecx, ecx
jne 0x405259
lea eax, [ebx + 0x2bd00]
mov ecx, 0x1000
call fcn.00405292
test ecx, ecx
jne 0x405259
sub eax, eax
test eax, eax
stosd dword es:[edi], eax
je 0x405263
mov eax, 0x405695
stosd dword es:[edi], eax
pop dword fs:[0]
pop ecx
pop eax
pop edi
pop esi
pop ebp
pop ebx
inc byte [eax]
jmp fcn.00405050