Function at 0x1005b260
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, ecx
mov byte [esp + 0x2c], 0xe8
push esi
xor bl, bl
mov dword [esp + 0x31], 0
xor al, al
mov byte [esp + 0x28], 0xe9
push edi
xor edi, edi
mov dword [esp + 0x2d], 0
mov word [esp + 0x3c], 0x800f
mov dword [esp + 0x3e], 0
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], al
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
nop
movzx ecx, al
lea edx, [esp + 0x44]
mov eax, dword [ebp + 8]
movzx esi, bl
add eax, ecx
add esi, dword [ebp]
mov dword [esp + 0x28], ecx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.1005a2b0
test dword [esp + 0x5c], 0x1000
mov ebx, eax
mov dword [esp + 0x1c], ebx
jne 0x1005b540
cmp byte [esp + 0x12], 5
mov ecx, esi
mov dword [esp + 0x24], ecx
jb 0x1005b315
mov eax, esi
mov dword [esp + 0x14], 1
sub eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
sub eax, 5
mov ebx, 5
mov dword [esp + 0x2d], eax
jmp 0x1005b457
mov dl, byte [esp + 0x4a]
cmp dl, 0xe8
jne 0x1005b342
movzx eax, byte [esp + 0x44]
lea ecx, [esp + 0x34]
sub eax, dword [esp + 0x18]
mov ebx, 5
add eax, 0xfffffffb
add eax, dword [esp + 0x54]
add eax, esi
mov dword [esp + 0x35], eax
jmp 0x1005b457
mov al, dl
and al, 0xfd
cmp al, 0xe9
jne 0x1005b3a7
movzx ecx, byte [esp + 0x44]
add ecx, esi
cmp dl, 0xeb
jne 0x1005b35f
movsx eax, byte [esp + 0x54]
add ecx, eax
jmp 0x1005b363
add ecx, dword [esp + 0x54]
mov eax, dword [ebp]
cmp eax, ecx
ja 0x1005b385
add eax, 5
cmp ecx, eax
jae 0x1005b385
cmp edi, ecx
cmovae ecx, edi
mov edi, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], edi
jmp 0x1005b457
sub ecx, dword [esp + 0x18]
mov ebx, 5
sub ecx, 5
cmp esi, edi
mov dword [esp + 0x2d], ecx
lea ecx, [esp + 0x2c]
sbb edx, edx
inc edx
mov dword [esp + 0x14], edx
jmp 0x1005b457
mov dh, byte [esp + 0x4b]
mov bl, dl
and bl, 0xf0
cmp bl, 0x70
je 0x1005b3e0
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x1005b3e0
mov al, dh
and al, 0xf0
cmp al, 0x80
je 0x1005b3e0
mov ebx, dword [esp + 0x1c]
and dl, 0xfe
cmp dl, 0xc2
jne 0x1005b457
cmp esi, edi
sbb edx, edx
inc edx
mov dword [esp + 0x14], edx
jmp 0x1005b457
movzx ecx, byte [esp + 0x44]
add ecx, esi
cmp bl, 0x70
je 0x1005b3fa
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x1005b3fa
add ecx, dword [esp + 0x54]
jmp 0x1005b401
movsx eax, byte [esp + 0x54]
add ecx, eax
mov eax, dword [ebp]
cmp eax, ecx
ja 0x1005b424
add eax, 5
cmp ecx, eax
jae 0x1005b424
mov ebx, dword [esp + 0x1c]
cmp edi, ecx
cmovae ecx, edi
mov edi, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], edi
jmp 0x1005b457
mov al, dl
and al, 0xfc
cmp al, 0xe0
je 0x1005b540
movzx eax, dl
cmp dl, 0xf
jne 0x1005b43b
movzx eax, dh
sub ecx, dword [esp + 0x18]
and al, 0xf
or al, 0x80
mov ebx, 6
sub ecx, 6
mov byte [esp + 0x3d], al
mov dword [esp + 0x3e], ecx
lea ecx, [esp + 0x3c]
cmp esi, edi
jae 0x1005b468
movzx eax, byte [esp + 0x44]
cmp ebx, eax
jne 0x1005b540
mov esi, dword [esp + 0x28]
lea eax, [esi + ebx]
cmp eax, 0x20
ja 0x1005b540
mov eax, dword [ebp + 0x10]
cmp eax, 8
jae 0x1005b540
mov dl, byte [esp + 0x12]
mov byte [eax + ebp + 0x14], dl
mov eax, dword [ebp + 0x10]
mov dl, byte [esp + 0x13]
mov byte [eax + ebp + 0x1c], dl
mov al, dl
mov edi, dword [ebp + 8]
add al, bl
inc dword [ebp + 0x10]
add edi, esi
mov esi, ecx
mov byte [esp + 0x13], al
mov ecx, ebx
mov bl, byte [esp + 0x12]
rep movsb byte es:[edi], byte [esi]
add bl, byte [esp + 0x44]
cmp dword [esp + 0x14], 0
mov edi, dword [esp + 0x20]
mov byte [esp + 0x12], bl
je 0x1005b2b0
cmp bl, 5
jae 0x1005b533
mov edi, dword [ebp]
mov edx, 5
movzx esi, bl
sub edx, esi
lea ecx, [edi + esi]
call fcn.1005b220
test eax, eax
jne 0x1005b533
cmp bl, 2
jae 0x1005b4fb
mov edx, 2
sub edx, esi
call fcn.1005b220
test eax, eax
je 0x1005b540
lea ecx, [edi - 5]
call fcn.1005a270
test eax, eax
je 0x1005b540
mov edx, dword [ebp]
mov cl, byte [edx - 5]
test cl, cl
je 0x1005b51b
cmp cl, 0x90
je 0x1005b51b
cmp cl, 0xcc
jne 0x1005b540
mov eax, 1
cmp byte [edx + eax - 5], cl
jne 0x1005b540
inc eax
cmp eax, 5
jb 0x1005b520
mov dword [ebp + 0xc], 1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret