Function at 0x404150
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x18], 0
mov ecx, dword [edi + 0xc]
mov edx, ecx
mov ebx, dword [edi + 0x10]
mov dword [esp + 0x10], ecx
test ebx, ebx
jle 0x404323
mov edx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], edx
lea esi, [eax + 0xc]
jmp 0x404192
mov edx, ebx
mov ebx, edx
mov edx, ecx
cmp ebp, 0xf
jae 0x404323
mov dl, byte [ecx]
mov byte [esp + 0x24], dl
movzx edx, dl
mov dword [esp + 0x1c], edx
add edx, 0xffffffda
cmp edx, 0xcd
ja case.default.0x4041c2
movzx ecx, byte [edx + 0x4044c4]
jmp dword [ecx*4 + 0x404494]
or dword [eax], 0x2000
mov edx, 1
mov cx, word [eax + 0x14]
or word [esi], cx
mov ecx, ebp
shl dx, cl
lea esi, [eax + 0xc]
mov word [eax + 0x14], dx
jmp 0x404302
or dword [eax], 0x10
mov cx, word [eax + 0x10]
mov edx, 1
or word [esi], cx
mov ecx, ebp
shl dx, cl
lea esi, [eax + 0xc]
mov word [eax + 0x10], dx
jmp 0x404302
or dword [eax], 0x20
jmp 0x4041ef
or dword [eax], 0x40
jmp 0x4041ef
mov ecx, dword [eax]
and ecx, 0xffffe0ff
or ecx, 0x80
mov dword [eax], ecx
mov edx, 1
mov cx, word [eax + 0x12]
or word [esi], cx
mov ecx, ebp
shl dx, cl
lea esi, [eax + 0xc]
mov word [eax + 0x12], dx
jmp 0x404302
mov ecx, dword [eax]
and ecx, 0xffffe17f
or ecx, 0x100
jmp 0x404224
mov ecx, dword [eax]
and ecx, 0xffffe27f
or ecx, 0x200
jmp 0x404224
mov ecx, dword [eax]
and ecx, 0xffffe47f
or ecx, 0x400
jmp 0x404224
mov ecx, dword [eax]
and ecx, 0xffffe87f
or ecx, 0x800
jmp 0x404224
mov ecx, dword [eax]
and ecx, 0xfffff07f
or ecx, 0x1000
jmp 0x404224
or dword [eax], 0x4000
mov edx, 1
mov cx, word [eax + 0x16]
or word [esi], cx
mov ecx, ebp
shl dx, cl
lea esi, [eax + 0xc]
mov word [eax + 0x16], dx
jmp 0x404302
mov ecx, dword [esp + 0x14]
cmp dword [edi + 0x14], 2
mov edx, ecx
mov ebx, dword [esp + 0x28]
jne 0x404323
mov cl, byte [esp + 0x24]
and cl, 0xf0
cmp cl, 0x40
jne 0x404323
or dword [eax], 0x2000000
mov edx, 1
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
and ecx, 0xf
mov dword [eax + 0x18], 1
mov dword [eax + 0x24], ecx
mov cx, word [eax + 0xe]
or word [esi], cx
mov ecx, ebp
shl dx, cl
mov word [eax + 0xe], dx
mov ebx, dword [edi + 0x10]
inc ebp
mov edx, dword [edi + 0xc]
dec ebx
inc edx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], edx
mov ecx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], ebx
test ebx, ebx
jg 0x404190
mov ebp, ebx
mov esi, edx
cmp ebx, 2
jl 0x404386
cmp byte [edx], 0xc5
jne 0x404386
mov ecx, edx
sub ecx, dword [esp + 0x10]
cmp ecx, 0xd
jg 0x404386
cmp dword [edi + 0x14], 2
je 0x404348
cmp byte [edx + 1], 0xc0
jb 0x404386
or dword [eax], 0x20000000
lea ecx, [edx + 1]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x18], 2
mov cl, byte [ecx]
test cl, cl
js 0x40436b
cmp dword [edi + 0x14], 2
jne 0x40436b
or dword [eax + 0x24], 4
test cl, 4
je 0x404374
or dword [eax + 0x24], 0x10
mov esi, dword [edi + 0xc]
mov ebp, dword [edi + 0x10]
add esi, 2
add ebp, 0xfffffffe
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], ebp
mov ebx, esi
cmp ebp, 3
jl 0x40442f
cmp byte [esi], 0xc4
jne 0x40442f
mov ecx, esi
sub ecx, dword [esp + 0x10]
cmp ecx, 0xc
jg 0x40442f
mov edx, dword [eax]
test edx, 0x20000000
jne 0x40442f
cmp dword [edi + 0x14], 2
lea ebp, [edi + 0x14]
je 0x4043c7
cmp byte [esi + 1], 0xc0
jb 0x40442f
lea ebx, [edi + 0x14]
jmp 0x4043c9
mov ebx, ebp
or edx, 0x20000000
mov dword [eax + 0x18], 3
lea ecx, [esi + 1]
mov dword [eax], edx
mov dword [eax + 0x28], ecx
movzx edx, byte [ecx]
not edx
sar edx, 5
and edx, 7
or edx, dword [eax + 0x24]
mov dword [eax + 0x24], edx
mov cl, byte [ecx + 1]
mov byte [esp + 0x24], cl
mov ecx, ebp
test byte [esp + 0x24], 4
je 0x404407
or edx, 0x10
mov ecx, ebx
mov dword [eax + 0x24], edx
cmp byte [esp + 0x24], 0
jge 0x404416
or edx, 8
mov ebp, ecx
mov dword [eax + 0x24], edx
cmp dword [ebp], 2
je 0x404422
and edx, 0xfffffff0
mov dword [eax + 0x24], edx
mov ebx, dword [edi + 0xc]
add ebx, 3
sub dword [edi + 0x10], 3
mov dword [edi + 0xc], ebx
cmp dword [edi + 0x14], 2
jne 0x40447f
mov esi, dword [eax]
mov edx, esi
test esi, 0x2000000
je 0x404467
lea ecx, [ebx - 1]
cmp dword [esp + 0x18], ecx
je 0x404467
and edx, 0xfdffffff
cmp dword [eax + 0x18], 1
mov dword [eax], edx
jne 0x40445f
mov dword [eax + 0x18], 0
mov cx, word [eax + 0xe]
or word [eax + 0xc], cx
test edx, 0x780
je 0x40447f
mov cx, word [eax + 0x12]
and edx, 0xfffff87f
or word [eax + 0xc], cx
mov dword [eax], edx
mov cl, byte [edi + 0xc]
sub cl, byte [esp + 0x10]
pop edi
pop esi
movzx ecx, cl
pop ebp
mov dword [eax + 8], ecx
pop ebx
add esp, 0x10
ret