Function at 0x40d000
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
xor edi, edi
mov dword [esp + 4], edi
mov dword [esp + 8], edi
cmp eax, edi
jne 0x40d01f
xor eax, eax
pop edi
add esp, 8
ret 0xc
mov dword [0x40cbec], eax
mov eax, dword [esp + 0x18]
mov ecx, 4
mov dword [0x40cc24], ecx
mov dword [0x40cc94], ecx
mov ecx, dword [esp + 0x10]
mov dword [0x40cc08], eax
mov dword [0x40ccb0], ecx
mov dword [0x40cc74], 0xffffffff
mov dword [0x40cc4c], edi
mov dword [0x40cc20], edi
mov dword [0x40cc60], edi
mov dword [0x40cca8], edi
mov dword [eax], 0xfc
mov edx, dword [0x40cc08]
mov dword [edx + 8], edi
mov eax, dword [0x40cc08]
push ebx
push ebp
mov dword [eax + 4], edi
mov edx, dword [0x40ccb0]
push esi
mov esi, dword [0x40cbec]
cmp esi, edi
jbe 0x40d1f0
mov ebx, dword [0x40cc94]
mov ebp, dword [0x40cc24]
mov eax, dword [0x40cc74]
lea esp, [esp]
movzx ecx, byte [edx]
add ecx, 0xffffffda
cmp ecx, 0xcd
ja case.0x40d0c9.39
movzx ecx, byte [ecx + 0x40d5a4]
jmp dword [ecx*4 + 0x40d574]
cmp eax, 0xffffffff
jne 0x40d245
xor eax, eax
mov dword [0x40cc74], eax
jmp 0x40d1b4
cmp eax, 0xffffffff
jne 0x40d245
mov eax, 1
mov dword [0x40cc74], eax
jmp 0x40d1b4
cmp eax, 0xffffffff
jne 0x40d245
mov eax, 2
mov dword [0x40cc74], eax
jmp 0x40d1b4
cmp eax, 0xffffffff
jne 0x40d245
mov eax, 3
mov dword [0x40cc74], eax
jmp 0x40d1b4
cmp eax, 0xffffffff
jne 0x40d245
mov eax, 4
mov dword [0x40cc74], eax
jmp 0x40d1b4
cmp eax, 0xffffffff
jne 0x40d245
mov eax, 5
mov dword [0x40cc74], eax
jmp 0x40d1b4
cmp ebx, 4
jne 0x40d245
mov ebx, 2
mov dword [0x40cc94], ebx
jmp 0x40d1b4
cmp ebp, 4
jne 0x40d245
mov ebp, 2
mov dword [0x40cc24], ebp
jmp 0x40d1b4
cmp dword [esp + 0x14], 0
jne 0x40d245
mov dword [esp + 0x14], 0xf0
jmp 0x40d1b4
test edi, edi
jne 0x40d245
mov edi, 0xf2
jmp 0x40d1b4
test edi, edi
jne 0x40d245
mov edi, 0xf3
inc edx
sub esi, 1
mov dword [0x40ccb0], edx
mov dword [0x40cbec], esi
jne 0x40d0b0
cmp dword [esp + 0x14], 0
je 0x40d1e6
mov eax, dword [0x40cc08]
or dword [eax + 8], 0x40
mov edx, dword [0x40ccb0]
mov esi, dword [0x40cbec]
test esi, esi
jbe 0x40d1f0
mov al, byte [edx]
mov byte [esp + 0x10], al
mov ebp, 1
cmp esi, ebp
jbe 0x40d200
mov cl, byte [edx + 1]
mov byte [esp + 0x11], cl
mov ecx, dword [esp + 0x10]
mov ebx, 2
cmp esi, ebx
jbe 0x40d218
mov dl, byte [edx + 2]
mov byte [esp + 0x12], dl
mov ecx, dword [esp + 0x10]
test edi, edi
je 0x40d221
shl ecx, 8
or ecx, edi
mov esi, 0x402100
mov eax, 0xff
jmp 0x40d230
mov edx, dword [esi + 4]
xor edx, ecx
test eax, edx
je 0x40d260
mov eax, dword [esi + 0x10]
add esi, 0x10
test eax, eax
jne 0x40d230
jmp 0x40d265
mov edx, dword [0x40cc08]
pop esi
pop ebp
pop ebx
mov dword [edx], 0xfb
mov eax, 1
pop edi
add esp, 8
ret 0xc
cmp dword [esi], 0
jne 0x40d28a
mov eax, dword [0x40cc08]
mov dword [eax], 0xfc
cmp dword [0x40cbec], ebx
mov edx, dword [0x40cc08]
sbb ecx, ecx
neg ecx
add ecx, ebp
mov dword [edx + 4], ecx
jmp 0x40d4ec
movzx eax, byte [esi + 0xd]
mov ecx, dword [0x40cc08]
mov dword [ecx], eax
mov al, byte [esi + 9]
cmp al, 0x80
jne 0x40d2a8
mov eax, dword [0x40cc08]
or dword [eax + 8], 4
jmp 0x40d2b5
cmp al, 0x81
jne 0x40d2b5
mov eax, dword [0x40cc08]
or dword [eax + 8], 8
mov ecx, dword [0x40ccb0]
mov al, byte [ecx]
cmp al, 0x44
je 0x40d2e7
cmp al, 0x4c
je 0x40d2e7
cmp dword [0x40cbec], 3
jb 0x40d2fe
cmp al, 0x81
je 0x40d2d6
cmp al, 0x83
jne 0x40d2fe
mov al, byte [ecx + 1]
cmp al, 0xc4
je 0x40d2e1
cmp al, 0xec
jne 0x40d2fe
test byte [ecx + 2], 3
je 0x40d2fe
mov eax, dword [0x40cc08]
or dword [eax + 8], 0x80
mov eax, dword [0x40cc08]
or dword [eax], 0xfb
mov edx, dword [0x40ccb0]
cmp byte [edx], 0x8e
jne 0x40d311
mov eax, dword [0x40cc08]
or dword [eax + 8], ebx
cmp byte [esi + 8], bl
jne 0x40d335
cmp dword [0x40cbec], 0
jne 0x40d329
mov eax, dword [0x40cc08]
mov dword [eax + 4], ebx
jmp 0x40d335
add dword [0x40ccb0], ebp
sub dword [0x40cbec], ebp
cmp dword [0x40cbec], 0
jne 0x40d347
mov ecx, dword [0x40cc08]
mov dword [ecx + 4], ebx
mov al, byte [esi + 9]
mov ebp, dword [0x40ccb0]
test al, 1
je 0x40d36b
test byte [ebp], 1
jne 0x40d36b
xor edi, edi
mov dword [0x40cc94], 1
lea ebx, [edi + 6]
jmp 0x40d3a6
test al, 8
je 0x40d386
test byte [ebp], 8
jne 0x40d386
xor edi, edi
mov dword [0x40cc94], 1
lea ebx, [edi + 6]
jmp 0x40d3a6
test al, 0x20
je 0x40d390
mov dword [0x40cc94], ebx
xor edi, edi
lea ebx, [edi + 6]
jmp 0x40d3a6
mov ebp, dword [0x40ccb0]
mov edx, dword [0x40cc08]
cmp dword [edx + 4], 0
jne 0x40d4e7
test edi, edi
jne 0x40d3c0
movzx eax, byte [esi + 0xa]
jmp 0x40d3cf
cmp edi, 1
jne 0x40d3cb
movzx eax, byte [esi + 0xb]
jmp 0x40d3cf
movzx eax, byte [esi + 0xc]
test eax, eax
je 0x40d4e7
lea ecx, [eax - 1]
cmp ecx, 0x87
ja case.0x40d3ed.57
movzx ecx, byte [ecx + 0x40d6a8]
jmp dword [ecx*4 + 0x40d674]
mov eax, 2
cmp dword [0x40cbec], eax
jae 0x40d404
mov dword [edx + 4], eax
mov dword [0x40cc20], 1
jmp case.0x40d3ed.2
push eax
call fcn.004010b0
jmp case.0x40d3ed.2
test byte [esi + 9], 2
je 0x40d436
test byte [ebp], 2
je 0x40d436
push 1
call fcn.00401000
jmp case.0x40d3ed.2
mov edx, dword [0x40cc94]
push edx
call fcn.00401000
jmp case.0x40d3ed.2
mov eax, dword [0x40cc24]
lea ecx, [eax + 1]
cmp dword [0x40cbec], ecx
jae 0x40d463
mov dword [edx + 4], 2
jmp case.0x40d3ed.2
mov dword [0x40cca8], eax
jmp case.0x40d3ed.2
call fcn.00401040
jmp case.0x40d3ed.2
push 1
call fcn.00401080
jmp case.0x40d3ed.2
mov edx, dword [0x40cc94]
push edx
call fcn.00401080
jmp case.0x40d3ed.2
push 2
call fcn.00401000
jmp case.0x40d3ed.2
mov eax, dword [0x40cc24]
lea ecx, [eax + 3]
cmp dword [0x40cbec], ecx
jae 0x40d4ad
mov dword [edx + 4], 2
jmp case.0x40d3ed.2
mov dword [0x40cca8], eax
mov dword [0x40cc60], 2
jmp case.0x40d3ed.2
mov al, byte [ebp + 1]
and al, 0xc0
cmp al, 0xc0
je 0x40d4ce
mov dword [edx + 4], 5
mov dword [0x40cc20], 1
jmp case.0x40d3ed.2
mov dword [edx + 4], ebx
inc edi
cmp edi, 3
jb 0x40d3a0
mov ebp, 1
mov ecx, dword [0x40cc08]
mov eax, dword [ecx + 4]
test eax, eax
je 0x40d53f
cmp eax, ebp
jne 0x40d51c
mov edx, dword [0x40ccb0]
mov al, byte [edx]
cmp al, 0xf
je 0x40d50d
cmp al, 0xff
jne 0x40d51c
cmp dword [0x40cbec], 0
jbe 0x40d560
sub dword [0x40cbec], ebp
cmp dword [0x40cbec], 0
jbe 0x40d560
sub dword [0x40cbec], ebp
mov eax, dword [esp + 0x20]
sub eax, dword [0x40cbec]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
or eax, 0xffffffff
sub eax, dword [0x40cc60]
sub eax, dword [0x40cca8]
sub eax, dword [0x40cc4c]
sub eax, dword [0x40cc20]
add dword [0x40cbec], eax
mov eax, dword [esp + 0x20]
sub eax, dword [0x40cbec]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc