Function at 0x10051dc0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100e7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov byte [ebp - 0x1c], 0xe8
push esi
xor cl, cl
mov dword [ebp - 0x28], ebx
xor ch, ch
mov dword [ebp - 0x1b], 0
push edi
xor edi, edi
mov byte [ebp - 0xc], 0xe9
mov dword [ebp - 0xb], 0
mov word [ebp - 0x14], 0x800f
mov dword [ebp - 0x12], 0
mov byte [ebp - 0x1d], cl
mov byte [ebp - 0x1e], ch
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov eax, dword [ebx]
lea edx, [ebp - 0x5c]
movzx esi, cl
add esi, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 8]
movzx ecx, ch
add eax, ecx
mov dword [ebp - 0x40], ecx
mov ecx, esi
mov dword [ebp - 0x2c], eax
call fcn.10050d10
test dword [ebp - 0x44], 0x1000
mov edx, eax
mov dword [ebp - 0x3c], edx
jne 0x1005207d
cmp byte [ebp - 0x1d], 5
mov dword [ebp - 0x24], esi
jb 0x10051e72
mov eax, esi
mov dword [ebp - 0x30], 1
sub eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0xc]
sub eax, 5
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xb], eax
mov edx, 5
jmp 0x10051f94
mov bl, byte [ebp - 0x56]
cmp bl, 0xe8
jne 0x10051e99
movzx eax, byte [ebp - 0x5c]
lea ecx, [ebp - 0x1c]
sub eax, dword [ebp - 0x2c]
mov edx, 5
add eax, 0xfffffffb
add eax, dword [ebp - 0x4c]
add eax, esi
mov dword [ebp - 0x1b], eax
jmp 0x10051f8e
mov al, bl
and al, 0xfd
cmp al, 0xe9
jne 0x10051ef2
movzx ecx, byte [ebp - 0x5c]
add ecx, esi
cmp bl, 0xeb
jne 0x10051eb4
movsx eax, byte [ebp - 0x4c]
add ecx, eax
jmp 0x10051eb7
add ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x38]
cmp eax, ecx
ja 0x10051ed4
add eax, 5
cmp ecx, eax
jae 0x10051ed4
cmp edi, ecx
cmovae ecx, edi
mov edi, ecx
mov dword [ebp - 0x34], edi
jmp 0x10051f91
sub ecx, dword [ebp - 0x2c]
mov edx, 5
sub ecx, 5
cmp esi, edi
mov dword [ebp - 0xb], ecx
lea ecx, [ebp - 0xc]
sbb eax, eax
inc eax
mov dword [ebp - 0x30], eax
jmp 0x10051f8e
mov ch, byte [ebp - 0x55]
mov cl, bl
and cl, 0xf0
cmp cl, 0x70
je 0x10051f21
mov al, bl
and al, 0xfc
cmp al, 0xe0
je 0x10051f21
mov al, ch
and al, 0xf0
cmp al, 0x80
je 0x10051f21
and bl, 0xfe
cmp bl, 0xc2
jne 0x10051f91
cmp esi, edi
sbb eax, eax
inc eax
mov dword [ebp - 0x30], eax
jmp 0x10051f91
movzx edx, byte [ebp - 0x5c]
add edx, esi
cmp cl, 0x70
je 0x10051f39
mov al, bl
and al, 0xfc
cmp al, 0xe0
je 0x10051f39
add edx, dword [ebp - 0x4c]
jmp 0x10051f3f
movsx eax, byte [ebp - 0x4c]
add edx, eax
mov eax, dword [ebp - 0x38]
cmp eax, edx
ja 0x10051f5c
add eax, 5
cmp edx, eax
jae 0x10051f5c
cmp edi, edx
cmovae edx, edi
mov edi, edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], edi
jmp 0x10051f91
mov al, bl
and al, 0xfc
cmp al, 0xe0
je 0x1005207d
cmp bl, 0xf
movzx ecx, ch
movzx eax, bl
cmovne ecx, eax
sub edx, dword [ebp - 0x2c]
and cl, 0xf
or cl, 0x80
sub edx, 6
mov byte [ebp - 0x13], cl
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x12], edx
mov edx, 6
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp - 0x28]
cmp esi, edi
jae 0x10051fa4
movzx eax, byte [ebp - 0x5c]
cmp edx, eax
jne 0x1005207d
mov esi, dword [ebp - 0x40]
lea eax, [esi + edx]
cmp eax, 0x20
ja 0x1005207d
mov eax, dword [ebx + 0x10]
cmp eax, 8
jae 0x1005207d
mov cl, byte [ebp - 0x1d]
mov byte [eax + ebx + 0x14], cl
mov eax, dword [ebx + 0x10]
mov cl, byte [ebp - 0x1e]
mov byte [eax + ebx + 0x1c], cl
mov ecx, edx
mov edi, dword [ebx + 8]
inc dword [ebx + 0x10]
add edi, esi
mov esi, dword [ebp - 0x24]
rep movsb byte es:[edi], byte [esi]
mov ch, byte [ebp - 0x1e]
mov cl, byte [ebp - 0x1d]
add ch, dl
add cl, byte [ebp - 0x5c]
cmp dword [ebp - 0x30], 0
mov edi, dword [ebp - 0x34]
mov byte [ebp - 0x1e], ch
mov byte [ebp - 0x1d], cl
je 0x10051e13
cmp cl, 5
jae 0x10052067
mov edi, dword [ebx]
mov edx, 5
movzx esi, cl
sub edx, esi
lea ecx, [edi + esi]
call fcn.10051d80
test eax, eax
jne 0x10052067
cmp byte [ebp - 0x1d], 2
jae 0x10052030
mov edx, 2
sub edx, esi
call fcn.10051d80
test eax, eax
je 0x1005207d
lea ecx, [edi - 5]
call fcn.10050cc0
test eax, eax
je 0x1005207d
mov edx, dword [ebx]
mov cl, byte [edx - 5]
test cl, cl
je 0x1005204f
cmp cl, 0x90
je 0x1005204f
cmp cl, 0xcc
jne 0x1005207d
mov eax, 1
cmp byte [edx + eax - 5], cl
jne 0x1005207d
inc eax
cmp eax, 5
jb 0x10052054
mov dword [ebx + 0xc], 1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c4f7f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100c4f7f
mov esp, ebp
pop ebp
ret