Function at 0x506060
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, 0x1428
call fcn.005175b0
mov eax, dword [0x588e74]
xor eax, esp
mov dword [esp + 0x1424], eax
push ebx
push ebp
push esi
xor ebp, ebp
cmp dword [esp + 0x143c], 0x87654321
push edi
je 0x5064f3
cmp dword [esp + 0x143c], ebp
je 0x5064d2
push 0xffc
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.0052ee50
mov eax, dword fs:[0x30]
add esp, 0xc
test eax, eax
je 0x5064d2
mov esi, dword [eax + 0x38]
mov dword [esp + 0x18], esi
test esi, esi
je 0x5064d2
xor bl, bl
cmp dword [0x588e00], 0xffffffff
jne 0x5060de
mov eax, dword [esi]
mov dword [0x588e00], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x5060fe
cmp ecx, 2
je 0x5060fe
cmp ecx, 4
je 0x5060fe
cmp ecx, 6
je 0x5060fe
mov byte [0x588e18], 1
mov ecx, dword [esi]
jmp 0x506100
mov bl, 1
mov eax, ecx
lea edi, [eax - 6]
neg edi
sbb edi, edi
cmp eax, 6
mov dword [esp + 0x2c], edi
sete dl
test bl, bl
je 0x5064d2
xor ebx, ebx
nop dword [eax]
mov eax, dword [esp + 0x143c]
mov al, byte [eax + ebx]
xor al, 0xcc
cmp al, 0xcc
je 0x506150
cmp al, 0xe1
jne 0x506149
test dl, dl
jne 0x506146
mov dl, 1
cmp edi, 0xffffffff
jne 0x506146
lea edi, [ebx + 1]
mov dword [esp + 0x2c], edi
inc ebx
jmp 0x506120
cmp al, 0xe2
je 0x506150
inc ebx
jmp 0x506120
test dl, dl
je 0x5064d2
cmp edi, 0xffffffff
je 0x5064d2
test ebx, ebx
je 0x5064d2
sub ebx, edi
mov dword [esp + 0x24], ebx
cmp ecx, 6
jne 0x50617c
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0xc]
jmp 0x50619c
cmp ecx, 4
jne 0x506189
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0xc]
jmp 0x50619c
cmp ecx, 2
je 0x506196
test ecx, ecx
jne 0x5064d2
mov edx, dword [esi + 4]
lea ecx, [esi + 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
test edx, edx
je 0x5064d2
mov eax, dword [esp + 0x1c]
lea edx, [esi + 0x14]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], edx
nop dword [eax + eax]
mov ebp, dword [esi]
cmp ebp, 6
jne 0x5061cf
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x10]
jmp 0x5061ed
cmp ebp, 4
jne 0x5061db
mov eax, dword [edx]
mov ecx, dword [edx + 4]
jmp 0x5061ed
cmp ebp, 2
je 0x5061e8
test ebp, ebp
jne 0x5064b1
mov eax, dword [ecx - 4]
mov ecx, dword [ecx]
lea edi, [eax + esi]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x5064a9
test eax, eax
je 0x5064a9
lea esi, [ebx + ebx]
cmp ecx, esi
jne 0x5064a5
mov eax, dword [esp + 0x2c]
mov ecx, ebx
mov edx, dword [esp + 0x143c]
shr ecx, 1
add eax, ecx
mov bl, byte [eax + edx]
mov dl, byte [edi + ecx*2]
cmp bl, dl
je 0x506259
lea eax, [ebx - 0x20]
movzx eax, al
lea ecx, [ebx - 0x61]
mov dword [esp + 0x20], eax
cmp cl, 0x19
mov ecx, dword [esp + 0x20]
movzx eax, bl
cmova ecx, eax
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x50624e
add dl, 0xe0
cmp cl, dl
je 0x506259
xor al, al
jmp 0x506345
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x143c]
shr ecx, 2
add eax, ecx
mov bl, byte [eax + edx]
mov dl, byte [edi + ecx*2]
cmp bl, dl
je 0x5062a6
lea eax, [ebx - 0x20]
movzx eax, al
lea ecx, [ebx - 0x61]
mov dword [esp + 0x20], eax
cmp cl, 0x19
mov ecx, dword [esp + 0x20]
movzx eax, bl
cmova ecx, eax
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x50629b
add dl, 0xe0
cmp cl, dl
je 0x5062a6
xor al, al
jmp 0x506345
mov ebx, dword [esp + 0x24]
mov edi, ebx
cmp ebp, 6
jne 0x5062e0
xor ecx, ecx
test ebx, ebx
je 0x5062e0
mov eax, dword [esp + 0x14]
add eax, esi
nop dword [eax]
cmp byte [eax], 0x2d
jne 0x5062d2
mov dl, byte [eax + 2]
cmp dl, 0x6c
je 0x5062dc
cmp dl, 0x4c
je 0x5062dc
inc ecx
sub eax, 2
cmp ecx, ebx
jb 0x5062c0
jmp 0x5062e6
mov edi, ebx
sub edi, ecx
mov al, 1
test edi, edi
je 0x506349
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x143c]
xor esi, esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
nop dword [eax + eax]
mov bl, byte [eax + esi]
mov dl, byte [ecx + esi*2]
cmp bl, dl
je 0x50633e
lea eax, [ebx - 0x20]
movzx eax, al
lea ecx, [ebx - 0x61]
mov dword [esp + 0x20], eax
cmp cl, 0x19
mov ecx, dword [esp + 0x20]
movzx eax, bl
cmova ecx, eax
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x50632e
add dl, 0xe0
cmp cl, dl
jne 0x506252
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
inc esi
cmp esi, edi
jb 0x506300
mov al, 1
mov ebx, dword [esp + 0x24]
test al, al
je 0x5064a1
xor edx, edx
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x14], edx
xor eax, eax
cmp ebp, 6
jne 0x506372
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0x18]
add ecx, dword [esp + 0x18]
mov edx, dword [edx + 0x1c]
jmp 0x50639d
cmp ebp, 4
jne 0x506387
mov edx, dword [esp + 0x28]
mov esi, dword [edx + 0x10]
add esi, dword [esp + 0x18]
mov edx, dword [esi + 4]
jmp 0x50639d
cmp ebp, 2
je 0x506390
test ebp, ebp
jne 0x5063a1
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
add eax, dword [esp + 0x18]
mov edx, dword [eax]
mov dword [esp + 0x14], edx
xor ebp, ebp
test edx, edx
je 0x5064a1
mov ebx, edx
lea edi, [ecx - 8]
shl ebx, 4
add ebx, eax
lea eax, [edx + edx*4]
shl eax, 2
lea edx, [esi - 4]
add edx, eax
add edi, eax
sub esi, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], esi
nop dword [eax]
mov ecx, dword [esp + 0x18]
xor esi, esi
xor eax, eax
mov ecx, dword [ecx]
cmp ecx, 6
jne 0x5063e6
mov esi, dword [edi + 4]
mov eax, dword [edi]
jmp 0x506404
cmp ecx, 4
jne 0x5063f6
mov eax, dword [esp + 0x30]
mov esi, dword [edx]
mov eax, dword [eax + edi]
jmp 0x506404
cmp ecx, 2
je 0x5063ff
test ecx, ecx
jne 0x506404
mov esi, dword [ebx]
mov eax, dword [ebx - 4]
mov byte [esp + 0x1034], 0
test esi, esi
je 0x506485
test eax, eax
je 0x506485
mov edx, dword [esp + 0x18]
add edx, eax
shr esi, 1
mov eax, 0
je 0x506432
mov cl, byte [edx + eax*2]
mov byte [esp + eax + 0x1034], cl
inc eax
cmp eax, esi
jb 0x506423
cmp esi, 0x400
jae 0x506510
lea eax, [esp + 0x1034]
mov byte [esp + esi + 0x1034], 0
push eax
call fcn.00506b40
test eax, eax
je 0x506464
cmp eax, dword [esp + 0x1440]
jne 0x5064ef
cmp byte [esp + 0x1034], 0
je 0x506481
push esi
lea eax, [esp + 0x1038]
push 0
push eax
call fcn.0052ee50
add esp, 0xc
mov edx, dword [esp + 0x20]
inc ebp
sub edx, 0x14
sub edi, 0x14
mov dword [esp + 0x20], edx
sub ebx, 0x10
cmp ebp, dword [esp + 0x14]
jb 0x5063d0
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x34]
add edx, 0x18
inc ebp
mov dword [esp + 0x28], edx
add ecx, 0xc
mov dword [esp + 0x34], ebp
mov dword [esp + 0x10], ecx
cmp ebp, eax
jb 0x5061c0
xor ebp, ebp
mov ecx, dword [esp + 0x1434]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005168d0
add esp, 0x1428
ret 8
mov ebp, eax
jmp 0x5064d2
cmp dword [0x588e28], 0x33c0
jne 0x5064d2
call fcn.0050b2ed
add eax, 0x33c0
mov dword [0x588e28], eax
jmp 0x5064d2
call fcn.005174d1
int3