Function at 0x40b080
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
movzx edx, word [ebp + 8]
sub esp, 0xc
push esi
mov esi, ecx
cmp edx, 0x65
jne 0x40b0ae
push 0
push 0
push 0x8222
push dword [0x4f7e34]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edx, 0x66
jne 0x40b0c9
push 0
push 0
push 0x10
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edx, 0xc9
jne 0x40b0f1
call fcn.0044bd60
mov dword [esi + 0x44], 1
mov dword [esi], 0
mov dword [esi + 0x38], 0
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edx, 0xca
jne 0x40b119
call fcn.0044bc20
mov dword [esi + 0x44], 1
mov dword [esi], 1
mov dword [esi + 0x38], 0
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edx, 0xcb
jne 0x40b18f
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
sete al
mov dword [esi + 0xc], eax
test ecx, ecx
jne 0x40b33e
mov eax, dword [0x4f7d20]
mov eax, dword [eax + 0x1fc]
push dword [eax + 4]
call fcn.00404230
test eax, eax
je 0x40b33e
mov dword [eax + 0x178], 0
mov eax, dword [eax + 4]
test eax, eax
je 0x40b33e
cmp dword [eax + 0x1a4], 0
je 0x40b181
cmp dword [eax + 0x170], 0
jne 0x40b181
cmp dword [eax + 0x174], 0
je 0x40b151
mov eax, dword [eax + 4]
test eax, eax
jne 0x40b166
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edx, 0xcc
jne 0x40b233
mov ecx, dword [0x4f7d20]
xor eax, eax
cmp dword [esi + 0x10], eax
sete al
xor edx, edx
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x28c]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x290]
mov dword [ebp - 4], eax
mov eax, dword [ebp + edx*4 - 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x40b226
nop
cmp dword [eax + 0x1a4], 0
je 0x40b1eb
cmp dword [eax + 0x170], 0
jne 0x40b1eb
cmp dword [eax + 0x174], 0
je 0x40b1f4
mov eax, dword [eax + 4]
test eax, eax
jne 0x40b1d0
jmp 0x40b226
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18c], ecx
mov eax, dword [eax + 4]
test eax, eax
je 0x40b226
cmp dword [eax + 0x1a4], 0
je 0x40b21f
cmp dword [eax + 0x170], 0
jne 0x40b21f
cmp dword [eax + 0x174], 0
je 0x40b1f4
mov eax, dword [eax + 4]
test eax, eax
jne 0x40b204
inc edx
cmp edx, 2
jl 0x40b1c0
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edx, 0xcd
jne 0x40b24d
xor eax, eax
cmp dword [esi + 8], eax
sete al
mov dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edx, 0xce
jne 0x40b267
xor eax, eax
cmp dword [esi + 0x30], eax
sete al
mov dword [esi + 0x30], eax
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edx, 0xd6
jne 0x40b281
xor eax, eax
cmp dword [esi + 0x18], eax
sete al
mov dword [esi + 0x18], eax
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edx, 0xcf
jne 0x40b2bd
mov edx, dword [0x5051ac]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x40b33e
xor eax, eax
cmp dword [ecx + 0x14], eax
sete al
mov dword [ecx + 0x14], eax
mov eax, dword [edx + 4]
mov ecx, dword [0x4f7e48]
push dword [eax + 0x14]
call fcn.0044b170
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edx, 0xd0
jne 0x40b2d1
call fcn.0044b0d0
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edx, 0xd1
jne 0x40b2eb
xor eax, eax
cmp dword [esi + 4], eax
sete al
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [edx - 0x3e8]
cmp eax, 0x3e8
ja 0x40b33e
mov eax, dword [0x4f7d20]
push ecx
push dword [eax + 0x264]
push edx
call fcn.00487620
mov esi, eax
test esi, esi
je 0x40b33e
mov ecx, dword [0x4f7f14]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, dword [0x5051ac]
mov eax, dword [ecx + 4]
test eax, eax
je 0x40b32d
mov eax, dword [eax + 4]
jmp 0x40b32f
xor eax, eax
mov ecx, dword [0x4f7d20]
push eax
push dword [esi + 8]
call fcn.00415970
pop esi
mov esp, ebp
pop ebp
ret 8