Function at 0x10050570
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x54
push ebx
push ebp
mov ebp, ecx
mov byte [esp + 0x30], 0xe8
xor cl, cl
mov dword [esp + 0x31], 0
mov byte [esp + 0xb], cl
lea edx, [esp + 0x40]
xor ecx, ecx
mov byte [esp + 0x28], 0xe9
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp]
push edi
xor edi, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov ecx, esi
mov dword [esp + 0x31], 0
mov word [esp + 0x40], 0x800f
mov dword [esp + 0x42], 0
mov byte [esp + 0x12], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [esp + 0x18], eax
call fcn.1004f620
test dword [esp + 0x60], 0x1000
mov ebx, eax
mov dword [esp + 0x1c], ebx
jne 0x10050805
cmp byte [esp + 0x12], 5
mov ecx, esi
mov dword [esp + 0x28], ecx
jb 0x10050620
mov eax, esi
mov dword [esp + 0x14], 1
sub eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
sub eax, 5
mov ebx, 5
mov dword [esp + 0x31], eax
jmp 0x1005076a
mov dl, byte [esp + 0x4e]
cmp dl, 0xe8
jne 0x1005064d
movzx eax, byte [esp + 0x48]
lea ecx, [esp + 0x38]
sub eax, dword [esp + 0x18]
mov ebx, 5
add eax, 0xfffffffb
add eax, dword [esp + 0x58]
add eax, esi
mov dword [esp + 0x39], eax
jmp 0x1005076a
mov al, dl
and al, 0xfd
cmp al, 0xe9
jne 0x100506b6
movzx ecx, byte [esp + 0x48]
add ecx, esi
cmp dl, 0xeb
jne 0x1005066a
movsx eax, byte [esp + 0x58]
add ecx, eax
jmp 0x1005066e
add ecx, dword [esp + 0x58]
mov eax, dword [ebp]
cmp eax, ecx
ja 0x10050694
add eax, 5
cmp ecx, eax
jae 0x10050694
cmp dword [esp + 0x24], ecx
mov edi, ecx
mov ecx, dword [esp + 0x28]
cmovae edi, dword [esp + 0x24]
mov dword [esp + 0x20], edi
jmp 0x1005076a
sub ecx, dword [esp + 0x18]
mov ebx, 5
sub ecx, 5
cmp esi, edi
mov dword [esp + 0x31], ecx
lea ecx, [esp + 0x30]
sbb edx, edx
inc edx
mov dword [esp + 0x14], edx
jmp 0x1005076a
mov dh, byte [esp + 0x4f]
mov bl, dl
and bl, 0xf0
cmp bl, 0x70
je 0x100506ef
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x100506ef
mov al, dh
and al, 0xf0
cmp al, 0x80
je 0x100506ef
mov ebx, dword [esp + 0x1c]
and dl, 0xfe
cmp dl, 0xc2
jne 0x1005076a
cmp esi, edi
sbb edx, edx
inc edx
mov dword [esp + 0x14], edx
jmp 0x1005076a
movzx ecx, byte [esp + 0x48]
add ecx, esi
cmp bl, 0x70
je 0x10050709
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x10050709
add ecx, dword [esp + 0x58]
jmp 0x10050710
movsx eax, byte [esp + 0x58]
add ecx, eax
mov eax, dword [ebp]
cmp eax, ecx
ja 0x10050737
add eax, 5
cmp ecx, eax
jae 0x10050737
cmp dword [esp + 0x24], ecx
mov edi, ecx
mov ebx, dword [esp + 0x1c]
cmovae edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], edi
jmp 0x1005076a
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x10050805
movzx eax, dl
cmp dl, 0xf
jne 0x1005074e
movzx eax, dh
sub ecx, dword [esp + 0x18]
and al, 0xf
or al, 0x80
mov ebx, 6
sub ecx, 6
mov byte [esp + 0x41], al
mov dword [esp + 0x42], ecx
lea ecx, [esp + 0x40]
cmp esi, edi
jae 0x1005077b
movzx eax, byte [esp + 0x48]
cmp ebx, eax
jne 0x10050805
mov eax, dword [esp + 0x2c]
add eax, ebx
cmp eax, 0x20
ja 0x10050805
mov eax, dword [ebp + 0x10]
cmp eax, 8
jae 0x10050805
mov dl, byte [esp + 0x12]
mov esi, ecx
mov byte [eax + ebp + 0x14], dl
mov ecx, ebx
mov eax, dword [ebp + 0x10]
mov dl, byte [esp + 0x13]
movzx edi, dl
mov byte [eax + ebp + 0x1c], dl
add dl, bl
mov eax, dword [ebp + 8]
add edi, eax
mov bl, byte [esp + 0x12]
inc dword [ebp + 0x10]
rep movsb byte es:[edi], byte [esi]
add bl, byte [esp + 0x48]
cmp dword [esp + 0x14], 0
mov byte [esp + 0x13], dl
mov byte [esp + 0x12], bl
jne 0x1005080f
mov edi, dword [esp + 0x20]
movzx ecx, dl
lea edx, [esp + 0x48]
movzx esi, bl
add eax, ecx
add esi, dword [ebp]
mov dword [esp + 0x2c], ecx
mov ecx, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], eax
call fcn.1004f620
test dword [esp + 0x60], 0x1000
mov ebx, eax
mov dword [esp + 0x1c], ebx
je 0x100505f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
cmp bl, 5
jae 0x10050882
mov edi, dword [ebp]
mov edx, 5
movzx esi, bl
sub edx, esi
lea ecx, [edi + esi]
call fcn.10050530
test eax, eax
jne 0x10050882
cmp bl, 2
jae 0x10050842
mov edx, 2
sub edx, esi
call fcn.10050530
test eax, eax
je 0x10050805
lea ecx, [edi - 5]
call fcn.1004f5e0
test eax, eax
je 0x10050805
mov eax, dword [ebp]
mov dl, byte [eax - 5]
test dl, dl
je 0x10050862
cmp dl, 0x90
je 0x10050862
cmp dl, 0xcc
jne 0x10050805
mov ecx, 1
add eax, 0xfffffffc
nop word [eax + eax]
cmp byte [eax], dl
jne 0x10050805
inc ecx
inc eax
cmp ecx, 5
jb 0x10050870
mov dword [ebp + 0xc], 1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret