Function at 0x4b76e0
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x430
mov eax, dword [0x502c60]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
xor ebx, ebx
cmp dword [esp + 0x440], 0x87654321
push esi
push edi
mov dword [esp + 0x1c], ebx
je 0x4b7b67
cmp dword [esp + 0x444], ebx
je 0x4b77d4
mov eax, dword fs:[0x30]
test eax, eax
je 0x4b77d4
mov esi, dword [eax + 0x38]
mov dword [esp + 0x10], esi
test esi, esi
je 0x4b77d4
xor bl, bl
mov dword [esp + 0x24], 0xffffffff
xor dl, dl
xor cl, cl
xor ebp, ebp
cmp dword [0x4ff638], 0xffffffff
jne 0x4b7759
mov eax, dword [esi]
mov dword [0x4ff638], eax
mov eax, dword [esi]
test eax, eax
je 0x4b7777
cmp eax, 2
je 0x4b7777
cmp eax, 4
je 0x4b7777
cmp eax, 6
je 0x4b7777
mov byte [0x4ff650], 1
jmp 0x4b7779
mov cl, 1
mov edi, dword [esi]
cmp edi, 6
jne 0x4b7786
mov dword [esp + 0x24], ebp
mov dl, 1
test cl, cl
je 0x4b77d2
mov eax, dword [esp + 0x444]
mov esi, 1
mov ecx, eax
sub esi, eax
lea ebx, [ebx]
mov al, byte [ecx]
xor al, 0xcc
cmp al, 0xcc
je 0x4b77f1
cmp al, 0xe1
jne 0x4b77c2
test dl, dl
jne 0x4b77cc
cmp dword [esp + 0x24], 0xffffffff
mov dl, 1
jne 0x4b77cc
lea eax, [esi + ecx]
mov dword [esp + 0x24], eax
jmp 0x4b77cc
cmp al, 0xe2
jne 0x4b77cc
test dl, dl
jne 0x4b77f5
mov bl, 1
inc ebp
inc ecx
test bl, bl
je 0x4b77a0
xor ebx, ebx
mov ecx, dword [esp + 0x43c]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d17f4
add esp, 0x430
ret 8
test dl, dl
je 0x4b77d2
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4b77d2
test ebp, ebp
je 0x4b77d2
sub ebp, eax
mov dword [esp + 0x30], ebp
cmp edi, 6
jne 0x4b7816
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
jmp 0x4b7834
cmp edi, 4
jne 0x4b7824
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
jmp 0x4b7834
cmp edi, 2
je 0x4b782d
test edi, edi
jne 0x4b77d2
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov dword [esp + 0x18], edx
test edx, edx
je 0x4b77d2
mov eax, dword [esp + 0x18]
lea esi, [ecx + 8]
lea edx, [ecx + 0x20]
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edx
mov ebp, dword [ecx]
cmp ebp, 6
jne 0x4b7867
mov eax, dword [edx]
lea ebx, [ecx + eax]
mov ecx, dword [edx + 4]
jmp 0x4b788c
cmp ebp, 4
jne 0x4b7877
mov eax, dword [edx - 0xc]
lea ebx, [ecx + eax]
mov ecx, dword [edx - 8]
jmp 0x4b788c
cmp ebp, 2
je 0x4b7884
test ebp, ebp
jne 0x4b7b1b
mov eax, dword [esi]
lea ebx, [ecx + eax]
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], ebx
test ecx, ecx
je 0x4b7b61
test eax, eax
je 0x4b7b61
mov edi, dword [esp + 0x30]
lea esi, [edi + edi]
cmp ecx, esi
jne 0x4b7b61
mov edx, dword [esp + 0x444]
mov al, 1
mov dword [esp + 0x14], eax
mov ecx, edi
mov eax, dword [esp + 0x24]
shr ecx, 1
add eax, ecx
mov cl, byte [ebx + ecx*2]
mov dl, byte [eax + edx]
cmp dl, cl
je 0x4b78f0
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x4b78da
add dl, 0xe0
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x4b78e4
add cl, 0xe0
cmp dl, cl
je 0x4b78f0
xor al, al
mov dword [esp + 0x14], eax
jmp 0x4b7940
mov eax, dword [esp + 0x24]
mov ecx, edi
mov edx, dword [esp + 0x444]
shr ecx, 2
add eax, ecx
mov cl, byte [ebx + ecx*2]
mov dl, byte [eax + edx]
cmp dl, cl
je 0x4b793c
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x4b7916
add dl, 0xe0
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x4b7920
add cl, 0xe0
mov eax, dword [esp + 0x14]
cmp dl, cl
mov dword [esp + 0x14], 0
movzx eax, al
cmovne eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
jmp 0x4b7940
mov eax, dword [esp + 0x14]
test al, al
je 0x4b79c2
cmp ebp, 6
jne 0x4b7980
xor ecx, ecx
cmp dword [esp + 0x30], ecx
jbe 0x4b7980
lea eax, [esi + 2]
add eax, ebx
mov ebx, dword [esp + 0x30]
lea ebx, [ebx]
cmp byte [eax - 2], 0x2d
jne 0x4b7972
mov dl, byte [eax]
cmp dl, 0x6c
je 0x4b797c
cmp dl, 0x4c
je 0x4b797c
inc ecx
sub eax, 2
cmp ecx, ebx
jb 0x4b7960
jmp 0x4b7980
mov edi, ebx
sub edi, ecx
xor esi, esi
test edi, edi
je 0x4b79c2
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x444]
add ebx, ecx
mov eax, dword [esp + 0x20]
mov cl, byte [ebx + esi]
mov dl, byte [eax + esi*2]
cmp cl, dl
je 0x4b79bd
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x4b79ab
add cl, 0xe0
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x4b79b5
add dl, 0xe0
cmp cl, dl
jne 0x4b79ef
mov eax, dword [esp + 0x20]
inc esi
cmp esi, edi
jb 0x4b7997
mov eax, dword [esp + 0x14]
test al, al
je 0x4b7b0f
xor edx, edx
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x20], edx
xor eax, eax
cmp ebp, 6
jne 0x4b79f3
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0xc]
add ecx, dword [esp + 0x10]
mov edx, dword [edx + 0x10]
jmp 0x4b7a1e
xor al, al
jmp 0x4b79c6
cmp ebp, 4
jne 0x4b7a08
mov edx, dword [esp + 0x28]
mov esi, dword [edx + 4]
add esi, dword [esp + 0x10]
mov edx, dword [esi + 4]
jmp 0x4b7a1e
cmp ebp, 2
je 0x4b7a11
test ebp, ebp
jne 0x4b7a22
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
add eax, dword [esp + 0x10]
mov edx, dword [eax]
mov dword [esp + 0x20], edx
xor ebp, ebp
test edx, edx
je 0x4b7b0f
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 + 0x14], edx
mov dword [esp + 0x38], esi
lea ecx, [ecx]
mov ecx, dword [esp + 0x10]
xor esi, esi
xor eax, eax
mov ecx, dword [ecx]
cmp ecx, 6
jne 0x4b7a66
mov esi, dword [edi + 4]
mov eax, dword [edi]
jmp 0x4b7a84
cmp ecx, 4
jne 0x4b7a76
mov eax, dword [esp + 0x38]
mov esi, dword [edx]
mov eax, dword [eax + edi]
jmp 0x4b7a84
cmp ecx, 2
je 0x4b7a7f
test ecx, ecx
jne 0x4b7a84
mov esi, dword [ebx]
mov eax, dword [ebx - 4]
mov byte [esp + 0x3c], 0
test esi, esi
je 0x4b7af7
test eax, eax
je 0x4b7af7
mov edx, dword [esp + 0x10]
add edx, eax
shr esi, 1
mov eax, 0
je 0x4b7aac
mov cl, byte [edx + eax*2]
mov byte [esp + eax + 0x3c], cl
inc eax
cmp eax, esi
jb 0x4b7aa0
cmp esi, 0x400
jae 0x4b7b8b
lea eax, [esp + 0x3c]
mov byte [esp + esi + 0x3c], 0
push eax
call fcn.004b9640
test eax, eax
je 0x4b7adc
cmp eax, dword [esp + 0x448]
jne 0x4b7b45
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x3c], 0
je 0x4b7af3
push esi
lea eax, [esp + 0x40]
push 0
push eax
call fcn.004d26a0
add esp, 0xc
mov edx, dword [esp + 0x14]
inc ebp
sub edx, 0x14
sub edi, 0x14
mov dword [esp + 0x14], edx
sub ebx, 0x10
cmp ebp, dword [esp + 0x20]
jb 0x4b7a50
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x34]
add edx, 0x18
add dword [esp + 0x2c], 0xc
inc ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], edx
cmp ebp, eax
jae 0x4b77d4
mov esi, dword [esp + 0x2c]
jmp 0x4b7856
mov ebx, eax
mov dword [esp + 0x1c], ebx
test eax, eax
jne 0x4b77d4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
jmp 0x4b7b1f
mov ecx, dword [esp + 0x10]
jmp 0x4b7b17
cmp dword [0x4ff420], 0x33c0
jne 0x4b77d4
call fcn.004bd26e
add eax, 0x33c0
mov dword [0x4ff420], eax
jmp 0x4b77d4
call fcn.004d576e
int3