Function at 0x10005930
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 8], ebx
cmp dword [ebx + 0xc], 0
jne 0x10005c48
sub esp, 8
mov edx, 0x40
call fcn.10005000
push 0x40
push 0
push eax
mov dword [ebx + 0xc], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
cmp dword [ebx + 0xc], 0
je 0x10005c48
xor al, al
mov byte [ebp - 0x28], 0xe8
xor ch, ch
mov dword [ebp - 0x27], 0
xor edi, edi
mov byte [ebp - 0x20], 0xe9
mov dword [ebp - 0x1f], 0
mov word [ebp - 0x30], 0x800f
mov dword [ebp - 0x2e], 0
mov byte [ebp - 2], ch
mov byte [ebp - 3], al
mov byte [ebp - 1], al
mov byte [ebx + 1], al
mov dword [ebp - 0x14], edi
jmp 0x100059b3
mov ebx, dword [ebp - 8]
movzx esi, ch
lea edx, [ebp - 0x4c]
add esi, dword [ebx + 4]
movzx ecx, al
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [ebp - 0x18], ecx
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.100066e0
test dword [ebp - 0x34], 0x1000
mov bh, al
jne 0x10005c48
cmp byte [ebp - 2], 5
mov dword [ebp - 0xc], esi
jb 0x10005a0a
mov eax, esi
mov byte [ebp - 0x20], 0xe9
sub eax, dword [ebp - 0x10]
mov bl, 1
sub eax, 5
mov byte [ebp - 1], bl
mov dword [ebp - 0x1f], eax
mov bh, 5
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], eax
jmp 0x10005b37
mov bl, byte [ebp - 0x46]
cmp bl, 0xe8
jne 0x10005a39
mov cl, byte [ebp - 0x4c]
mov bh, 5
movzx eax, cl
sub eax, dword [ebp - 0x10]
add eax, 0xfffffffb
mov byte [ebp - 0x28], bl
add eax, dword [ebp - 0x3c]
mov bl, byte [ebp - 1]
add eax, esi
mov dword [ebp - 0x27], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], eax
jmp 0x10005b3a
mov al, bl
and al, 0xfd
cmp al, 0xe9
jne 0x10005a9b
movzx ecx, byte [ebp - 0x4c]
add ecx, esi
cmp bl, 0xeb
jne 0x10005a54
movsx eax, byte [ebp - 0x3c]
add ecx, eax
jmp 0x10005a57
add ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
cmp eax, ecx
ja 0x10005a7a
add eax, 5
cmp ecx, eax
jae 0x10005a7a
mov bl, byte [ebp - 1]
cmp edi, ecx
cmovae ecx, edi
mov edi, ecx
mov cl, byte [ebp - 0x4c]
jmp 0x10005b3d
sub ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
sub ecx, 5
mov dword [ebp - 0xc], eax
cmp esi, edi
mov dword [ebp - 0x1f], ecx
mov cl, byte [ebp - 0x4c]
mov bh, 5
setae bl
mov byte [ebp - 1], bl
jmp 0x10005b3d
mov ch, byte [ebp - 0x45]
mov cl, bl
and cl, 0xf0
cmp cl, 0x70
je 0x10005aca
mov al, bl
and al, 0xfc
cmp al, 0xe0
je 0x10005aca
mov al, ch
and al, 0xf0
cmp al, 0x80
je 0x10005aca
and bl, 0xfe
cmp bl, 0xc2
jne 0x10005b34
cmp esi, edi
setae bl
mov byte [ebp - 1], bl
jmp 0x10005b37
movzx edx, byte [ebp - 0x4c]
add edx, esi
cmp cl, 0x70
je 0x10005ae2
mov al, bl
and al, 0xfc
cmp al, 0xe0
je 0x10005ae2
add edx, dword [ebp - 0x3c]
jmp 0x10005ae8
movsx eax, byte [ebp - 0x3c]
add edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
cmp eax, edx
ja 0x10005b02
add eax, 5
cmp edx, eax
jae 0x10005b02
cmp edi, edx
cmovae edx, edi
mov edi, edx
jmp 0x10005b34
mov al, bl
and al, 0xfc
cmp al, 0xe0
je 0x10005c48
cmp bl, 0xf
movzx eax, bl
movzx ecx, ch
mov bh, 6
cmovne ecx, eax
sub edx, dword [ebp - 0x10]
and cl, 0xf
lea eax, [ebp - 0x30]
or cl, 0x80
mov dword [ebp - 0xc], eax
sub edx, 6
mov byte [ebp - 0x2f], cl
mov dword [ebp - 0x2e], edx
mov bl, byte [ebp - 1]
mov cl, byte [ebp - 0x4c]
mov edx, dword [ebp - 8]
cmp esi, edi
jae 0x10005b49
cmp bh, cl
jne 0x10005c48
mov esi, dword [ebp - 0x18]
movzx ecx, bh
lea eax, [ecx + esi]
cmp eax, 0x40
ja 0x10005c48
mov eax, dword [ebp - 0x14]
cmp eax, 8
jge 0x10005c48
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0xc]
push ecx
push dword [ebp - 0xc]
add eax, esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov al, byte [ebp - 3]
add esp, 0xc
mov ch, byte [ebp - 2]
add al, bh
add ch, byte [ebp - 0x4c]
mov byte [ebp - 3], al
mov byte [ebp - 2], ch
test bl, bl
je 0x100059b0
cmp ch, 5
jae 0x10005c3f
mov ebx, dword [ebp - 8]
movzx edi, ch
mov eax, dword [ebx + 4]
mov cl, byte [eax + edi]
lea edx, [eax + edi]
test cl, cl
je 0x10005bbc
cmp cl, 0x90
je 0x10005bbc
cmp cl, 0xcc
jne 0x10005be3
mov esi, 5
mov eax, 1
sub esi, edi
cmp esi, eax
jbe 0x10005c3f
nop dword [eax]
cmp byte [eax + edx], cl
jne 0x10005be3
inc eax
cmp eax, esi
jb 0x10005bd0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ch, 2
jae 0x10005c10
test cl, cl
je 0x10005bf6
cmp cl, 0x90
je 0x10005bf6
cmp cl, 0xcc
jne 0x10005c48
mov esi, 2
mov eax, 1
sub esi, edi
cmp esi, eax
jbe 0x10005c10
cmp byte [eax + edx], cl
jne 0x10005c48
inc eax
cmp eax, esi
jb 0x10005c06
mov eax, dword [ebx + 4]
mov dl, byte [eax - 5]
test dl, dl
je 0x10005c24
cmp dl, 0x90
je 0x10005c24
cmp dl, 0xcc
jne 0x10005c48
mov ecx, 1
add eax, 0xfffffffc
nop dword [eax]
cmp byte [eax], dl
jne 0x10005c48
inc ecx
inc eax
cmp ecx, 5
jb 0x10005c30
mov byte [ebx + 1], 1
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret