Function at 0x5b160e
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffb6c
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5b2376
cmp byte [esi + 0x50], 0
je 0x5b2376
lea eax, [ebp - 0x144]
push eax
lea edx, [esi + 0x50]
push edx
call fcn.005b131e
add esp, 8
cmp dword [0x4d3b74], 0
je 0x5b16cb
lea ecx, [ebp - 0x144]
push ecx
call fcn.0060504c
cmp eax, 0xffffffff
je 0x5b16cb
push 0
lea eax, [ebp - 0x448]
push eax
lea edx, [ebp - 0x348]
push edx
lea ecx, [ebp - 0x1f]
push ecx
lea eax, [ebp - 0x144]
push eax
call fcn.005fb1c6
add esp, 0x14
lea edx, [ebp - 0x448]
lea ecx, [ebp - 0x348]
lea eax, [ebp - 0x1f]
push 0x4bbae4
push edx
push ecx
push eax
lea edx, [ebp - 0x248]
push edx
call fcn.005fb1a2
add esp, 0x14
lea ecx, [ebp - 0x248]
push ecx
call fcn.00604fe6
lea eax, [ebp - 0x248]
push eax
lea edx, [ebp - 0x144]
push edx
call fcn.00605154
mov ecx, dword [esi]
cmp ecx, dword [0x4d7364]
sete al
and eax, 1
mov edi, eax
test edi, edi
je 0x5b16e8
cmp dword [0x4d77dc], 0
jne 0x5b16ec
xor eax, eax
jmp 0x5b16f1
mov eax, 1
mov dword [ebp - 0x10], eax
cmp dword [0x4d9208], 0
je 0x5b170b
cmp dword [esi + 0x16c], 0
je 0x5b170b
mov edi, 1
cmp dword [0x4d9214], 0
je 0x5b1722
cmp dword [esi + 0x174], 0
je 0x5b1722
mov edi, 1
cmp dword [esi + 0x3e1], 0
je 0x5b1730
mov edi, 1
test edi, edi
jne 0x5b178f
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x5b1785
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x4bba0c]
test ah, 0x80
jne 0x5b1782
push 0
mov edx, dword [ebp - 4]
push eax
mov ecx, dword [esi]
push ecx
call fcn.005ba9ca
add esp, 0xc
test eax, eax
je 0x5b1766
mov edi, 1
jmp 0x5b1782
push 0
call fcn.005bae66
pop ecx
mov ebx, eax
test ebx, ebx
je 0x5b1782
mov eax, dword [esi]
add eax, dword [esi + 4]
cmp ebx, eax
jae 0x5b1782
mov edi, 1
inc dword [ebp - 4]
test edi, edi
jne 0x5b178f
cmp dword [ebp - 4], 0x1e
jl 0x5b173b
test edi, edi
jne 0x5b17c3
mov ebx, dword [esi]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0056fe2a
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x5b17c3
mov edx, dword [esi]
add edx, dword [esi + 4]
cmp ebx, edx
jae 0x5b17c3
test byte [ebp - 0x17], 6
je 0x5b17c0
mov edi, 1
jmp 0x5b17c3
inc ebx
jmp 0x5b1795
test edi, edi
je 0x5b2376
push 0
push 0x80
push 3
push 0
push 3
push 0
lea eax, [esi + 0x50]
push eax
call fcn.00604fd4
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5b2376
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push ebx
call fcn.00605058
push 0
push ebx
call fcn.00605052
mov dword [ebp - 0x1c], eax
push ebx
call fcn.00604fc2
push 0x4bbae9
lea edx, [ebp - 0x144]
push edx
call fcn.005fb37e
add esp, 8
mov edi, eax
test edi, edi
jne 0x5b1843
add esi, 0x48
push esi
push 8
push 0x4bbaec
push 1
push 0
call fcn.005b0616
add esp, 0x14
jmp 0x5b2376
push 0x4bbb14
push 0x16
push 0x646f4d
push edi
call fcn.005b12a2
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 0xa
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x40]
push edx
push 0x10
push 0x7265560a
push edi
call fcn.005b12a2
add esp, 0x10
lea ecx, [esi + 0x50]
push ecx
lea eax, [esi + 0x50]
push eax
call fcn.005f96de
pop ecx
inc eax
push eax
push 0x6c69460a
push edi
call fcn.005b12a2
add esp, 0x10
lea edx, [ebp - 0x1c]
push edx
push 4
push 0x7a69530a
push edi
call fcn.005b12a2
add esp, 0x10
lea ecx, [ebp - 0x30]
push ecx
push 8
push 0x7473540a
push edi
call fcn.005b12a2
add esp, 0x10
lea eax, [esi + 0x170]
push eax
push 4
push 0x7263430a
push edi
call fcn.005b12a2
add esp, 0x10
cmp dword [esi + 0x3e1], 0
je 0x5b18ff
lea edx, [esi + 0x3e1]
push edx
push 4
push 0x6566530a
push edi
call fcn.005b12a2
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax*4 + 0x4bba0c]
test eax, 0x10000
je 0x5b1922
cmp dword [0x4d9208], 0
je 0x5b1a44
mov edx, dword [ebp - 4]
test eax, 0x20000
je 0x5b1a44
cmp dword [ebp - 0x10], 0
je 0x5b1944
mov dword [ebp - 0x14], 0xffffffff
mov ebx, 1
jmp 0x5b194e
mov eax, dword [esi]
mov ebx, eax
add eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1444]
push eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx*4 + 0x4bba0c]
and ecx, 0xff
push ecx
push ebx
call fcn.005ba9ca
add esp, 0xc
test eax, eax
jne 0x5b1a37
lea eax, [ebp - 0x1444]
push eax
call fcn.005bae66
pop ecx
mov ebx, eax
jmp 0x5b1a37
cmp dword [ebp - 0x10], 0
je 0x5b19e7
push ebx
call fcn.005b3e22
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x5b19e7
cmp esi, dword [ebp - 0x28]
je 0x5b19e7
lea eax, [ebp - 0x1444]
push eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx*4 + 0x4bba0c]
and ecx, 0xff
push ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax]
add edx, dword [ecx + 4]
push edx
call fcn.005ba9ca
add esp, 0xc
test eax, eax
jne 0x5b1a37
lea eax, [ebp - 0x1444]
push eax
call fcn.005bae66
pop ecx
mov ebx, eax
jmp 0x5b1a37
sub ebx, dword [esi]
mov dword [ebp - 0x1448], ebx
lea eax, [ebp - 0x1448]
push eax
lea edx, [ebp - 0x1444]
push edx
call fcn.005f96de
pop ecx
add eax, 5
push eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx*4 + 0x4bba0c]
and eax, 0xff
shl eax, 0x18
add eax, 0x73550a
push eax
push edi
call fcn.005b12a2
add esp, 0x10
lea edx, [ebp - 0x1444]
push edx
call fcn.005bae66
pop ecx
mov ebx, eax
test ebx, ebx
je 0x5b1a44
cmp ebx, dword [ebp - 0x14]
jb 0x5b198b
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1e
jl 0x5b1904
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x4bba0c]
test eax, 0x10000
je 0x5b1a74
cmp dword [0x4d9208], 0
je 0x5b1b64
mov edx, dword [ebp - 4]
test eax, 0x20000
jne 0x5b1b64
test ah, 0x80
mov ecx, dword [ebp - 4]
jne 0x5b1a96
mov ebx, dword [esi]
mov eax, dword [esi]
add eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
jmp 0x5b1abf
mov edx, dword [esi]
cmp edx, dword [0x4d7364]
jne 0x5b1b64
mov dword [ebp - 0x14], 0x1001
test ah, 0x40
mov edx, dword [ebp - 4]
mov ebx, 1
je 0x5b1abf
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x1444]
push eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx*4 + 0x4bba0c]
and eax, 0xff
push eax
push ebx
call fcn.005ba9ca
add esp, 0xc
test eax, eax
jne 0x5b1b5b
lea edx, [ebp - 0x1444]
push edx
call fcn.005bae66
pop ecx
mov ebx, eax
jmp 0x5b1b5b
mov eax, dword [ebp - 4]
test byte [eax*4 + 0x4bba0d], 0x80
jne 0x5b1b0b
sub ebx, dword [esi]
mov dword [ebp - 0x1448], ebx
jmp 0x5b1b11
mov dword [ebp - 0x1448], ebx
lea edx, [ebp - 0x1448]
push edx
lea ecx, [ebp - 0x1444]
push ecx
call fcn.005f96de
pop ecx
add eax, 5
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax*4 + 0x4bba0c]
and edx, 0xff
shl edx, 0x18
add edx, 0x73550a
push edx
push edi
call fcn.005b12a2
add esp, 0x10
lea ecx, [ebp - 0x1444]
push ecx
call fcn.005bae66
pop ecx
mov ebx, eax
test ebx, ebx
je 0x5b1b64
cmp ebx, dword [ebp - 0x14]
jb 0x5b1af4
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1e
jl 0x5b1a56
mov eax, dword [esi]
add eax, dword [esi + 4]
push eax
mov edx, dword [esi]
push edx
push 0x4dc8cd
call fcn.005ab5d2
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x5b1bec
mov ebx, dword [ebp - 4]
shl ebx, 5
add ebx, dword [0x4dc9e9]
jmp 0x5b1bd6
push esi
push edi
lea edi, [ebp - 0x1468]
mov esi, ebx
mov ecx, 8
lea edx, [ebp - 0x1468]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [esi]
sub dword [ebp - 0x1468], eax
push edx
push 0x20
push 0x6372500a
push edi
call fcn.005b12a2
add esp, 0x10
inc dword [ebp - 4]
add ebx, 0x20
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x4dc9d1]
jge 0x5b1bec
mov eax, dword [ebx]
mov edx, dword [esi]
add edx, dword [esi + 4]
cmp eax, edx
jb 0x5b1b9e
mov ecx, dword [esi]
add ecx, dword [esi + 4]
push ecx
mov eax, dword [esi]
push eax
push 0x4dca05
call fcn.005ab5d2
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x5b1c79
mov ebx, dword [ebp - 4]
shl ebx, 5
add ebx, dword [0x4dcb21]
jmp 0x5b1c63
push esi
push edi
lea edi, [ebp - 0x1488]
mov esi, ebx
mov ecx, 8
lea edx, [ebp - 0x1488]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [esi]
sub dword [ebp - 0x1488], eax
sub dword [ebp - 0x147c], eax
sub dword [ebp - 0x1478], eax
sub dword [ebp - 0x1474], eax
push edx
push 0x20
push 0x6977530a
push edi
call fcn.005b12a2
add esp, 0x10
inc dword [ebp - 4]
add ebx, 0x20
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x4dcb09]
jge 0x5b1c79
mov eax, dword [ebx]
mov edx, dword [esi]
add edx, dword [esi + 4]
cmp eax, edx
jb 0x5b1c19
cmp dword [0x4d9e28], 0
je 0x5b1dbb
mov ecx, dword [esi]
push ecx
call fcn.005f10a6
pop ecx
mov dword [ebp - 4], eax
jmp 0x5b1d93
mov eax, dword [ebp - 4]
lea eax, [eax + eax*8]
mov edx, dword [0x4d9e28]
mov ecx, dword [edx + eax + 4]
sub ecx, dword [esi]
mov dword [ebp - 0x1448], ecx
mov eax, dword [ebp - 4]
lea eax, [eax + eax*8]
mov ecx, dword [0x4d9e28]
mov eax, dword [ecx + eax]
mov edx, dword [esi]
cmp eax, edx
jb 0x5b1cfd
mov ecx, edx
add ecx, dword [esi + 4]
cmp eax, ecx
jae 0x5b1cfd
mov ecx, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 0x1444], eax
lea eax, [ebp - 0x1448]
push eax
push 8
push 0x6966430a
push edi
lea ecx, [ecx + ecx*8]
mov ebx, dword [0x4d9e28]
call fcn.005b12a2
add esp, 0x10
jmp 0x5b1d90
mov edx, dword [ebp - 4]
lea edx, [edx + edx*8]
mov ecx, dword [0x4d9e28]
mov eax, dword [ecx + edx]
push eax
call fcn.005b3e22
pop ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5b1d65
mov edx, dword [ebp - 4]
lea edx, [edx + edx*8]
mov ecx, dword [0x4d9e28]
mov eax, dword [ecx + edx]
mov edx, dword [ebp - 0x28]
sub eax, dword [edx]
mov dword [ebp - 0x1444], eax
push 8
mov ecx, dword [ebp - 0x28]
add ecx, 0x48
push ecx
lea eax, [ebp - 0x1440]
push eax
call fcn.005f953a
add esp, 0xc
lea edx, [ebp - 0x1448]
push edx
push 0x10
push 0x6d66430a
push edi
call fcn.005b12a2
add esp, 0x10
jmp 0x5b1d90
mov ecx, dword [ebp - 4]
mov eax, dword [0x4d9e28]
lea ecx, [ecx + ecx*8]
mov edx, dword [eax + ecx]
lea ecx, [ebp - 0x1448]
mov dword [ebp - 0x1444], edx
push ecx
push 8
push 0x6166430a
push edi
call fcn.005b12a2
add esp, 0x10
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [0x4d9e30]
jge 0x5b1dbb
mov edx, dword [ebp - 4]
lea edx, [edx + edx*8]
mov ecx, dword [0x4d9e28]
mov eax, dword [ecx + edx + 4]
mov edx, dword [esi]
add edx, dword [esi + 4]
cmp eax, edx
jb 0x5b1c97
cmp dword [ebp - 0x10], 0
je 0x5b1dc8
mov ebx, 1
jmp 0x5b1dca
mov ebx, dword [esi]
lea eax, [ebp - 4]
lea edx, [ebp - 0x18]
push eax
push edx
push ebx
call fcn.0056fe2a
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x5b1e97
cmp dword [ebp - 0x10], 0
je 0x5b1e2d
push ebx
call fcn.005b3e22
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x5b1e0d
cmp esi, dword [ebp - 0x28]
je 0x5b1e0d
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ecx]
add ebx, dword [eax + 4]
jmp 0x5b1dca
cmp dword [ebp - 0x28], 0
jne 0x5b1e36
test byte [ebp - 0x17], 2
je 0x5b1e36
mov edx, dword [ebp - 0x18]
and edx, 0xfffffdff
or edx, 0x400
mov dword [ebp - 0x18], edx
jmp 0x5b1e36
mov ecx, dword [esi]
add ecx, dword [esi + 4]
cmp ebx, ecx
jae 0x5b1e97
test byte [ebp - 0x17], 6
je 0x5b1e91
mov eax, ebx
sub eax, dword [esi]
mov dword [ebp - 0x1448], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1444], edx
cmp dword [ebp - 4], 0xcc
jne 0x5b1e71
lea ecx, [ebp - 0x1448]
push ecx
push 8
push 0x7470420a
push edi
call fcn.005b12a2
add esp, 0x10
jmp 0x5b1e91
mov al, byte [ebp - 4]
lea edx, [ebp - 0x1448]
mov byte [ebp - 0x1440], al
push edx
push 9
push 0x6370420a
push edi
call fcn.005b12a2
add esp, 0x10
inc ebx
jmp 0x5b1dca
mov ecx, dword [esi]
cmp ecx, dword [0x4d7364]
jne 0x5b1f73
cmp dword [0x4d375c], 0
je 0x5b1f73
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, edx
shl edx, 3
sub edx, ecx
mov eax, dword [edx*4 + 0x4d8d78]
test eax, eax
je 0x5b1f66
mov edx, dword [ebp - 4]
mov ecx, edx
shl edx, 3
sub edx, ecx
cmp eax, 5
je 0x5b1f66
mov edx, dword [ebp - 4]
mov ecx, edx
shl edx, 3
sub edx, ecx
cmp eax, 6
je 0x5b1f66
mov edx, dword [ebp - 4]
mov ecx, edx
shl edx, 3
sub edx, ecx
cmp eax, 7
je 0x5b1f66
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1448], eax
mov eax, dword [ebp - 4]
mov edx, eax
shl eax, 3
sub eax, edx
mov ecx, dword [eax*4 + 0x4d8d70]
mov dword [ebp - 0x1444], ecx
mov eax, dword [ebp - 4]
mov edx, eax
shl eax, 3
sub eax, edx
mov ecx, dword [eax*4 + 0x4d8d74]
mov dword [ebp - 0x1440], ecx
mov eax, dword [ebp - 4]
mov edx, eax
shl eax, 3
sub eax, edx
mov ecx, dword [eax*4 + 0x4d8d78]
lea eax, [ebp - 0x1448]
mov dword [ebp - 0x143c], ecx
push eax
push 0x10
push 0x7262480a
push edi
call fcn.005b12a2
add esp, 0x10
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jl 0x5b1eb7
cmp dword [0x4d9208], 0
je 0x5b1fad
cmp dword [esi + 0x421], 0
je 0x5b1fad
cmp dword [esi + 0x425], 0
jle 0x5b1fad
mov edx, dword [esi + 0x421]
push edx
mov ecx, dword [esi + 0x425]
lea ecx, [ecx + ecx*8]
push ecx
push 0x74644a0a
push edi
call fcn.005b12a2
add esp, 0x10
mov eax, dword [esi]
add eax, dword [esi + 4]
push eax
mov edx, dword [esi]
push edx
push 0x4d9034
call fcn.005ab5d2
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x5b2032
mov ebx, dword [ebp - 4]
shl ebx, 2
lea ebx, [ebx + ebx*2]
add ebx, dword [0x4d9150]
jmp 0x5b201c
mov eax, dword [ebx]
lea ecx, [ebp - 0x1494]
mov dword [ebp - 0x1494], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1490], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x148c], eax
mov edx, dword [esi]
sub dword [ebp - 0x1494], edx
push ecx
push 0xc
push 0x7468410a
push edi
call fcn.005b12a2
add esp, 0x10
inc dword [ebp - 4]
add ebx, 0xc
mov eax, dword [ebp - 4]
cmp eax, dword [0x4d9138]
jge 0x5b2032
mov edx, dword [ebx]
mov ecx, dword [esi]
add ecx, dword [esi + 4]
cmp edx, ecx
jb 0x5b1fdd
cmp dword [0x4d9208], 0
je 0x5b20f0
cmp dword [esi + 0x16c], 0
je 0x5b20f0
cmp dword [esi + 0x10], 0
jbe 0x5b20f0
mov ebx, dword [esi + 0x10]
add ebx, 0x1000
cmp dword [0x4d54c4], 0
je 0x5b2075
push ebx
push 0
call fcn.006050fa
mov dword [ebp - 0x24], eax
jmp 0x5b207a
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x5b209b
mov edx, dword [esi + 0x16c]
push edx
mov ecx, dword [esi + 0x10]
push ecx
push 0x616e410a
push edi
call fcn.005b12a2
add esp, 0x10
jmp 0x5b20f0
push ebx
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [esi + 0x10]
push edx
mov ecx, dword [esi + 0x16c]
push ecx
call fcn.0055e212
add esp, 0x10
mov ebx, eax
test ebx, ebx
jne 0x5b20d4
mov eax, dword [esi + 0x16c]
push eax
mov edx, dword [esi + 0x10]
push edx
push 0x616e410a
push edi
call fcn.005b12a2
add esp, 0x10
jmp 0x5b20e7
mov ecx, dword [ebp - 0x24]
push ecx
push ebx
push 0x636e410a
push edi
call fcn.005b12a2
add esp, 0x10
mov eax, dword [ebp - 0x24]
push eax
call fcn.00605100
cmp dword [0x4d9214], 0
je 0x5b21ae
cmp dword [esi + 0x174], 0
je 0x5b21ae
cmp dword [esi + 0x10], 0
jbe 0x5b21ae
mov ebx, dword [esi + 0x10]
add ebx, 0x1000
cmp dword [0x4d54c4], 0
je 0x5b2133
push ebx
push 0
call fcn.006050fa
mov dword [ebp - 0x24], eax
jmp 0x5b2138
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x5b2159
mov edx, dword [esi + 0x174]
push edx
mov ecx, dword [esi + 0x10]
push ecx
push 0x6172540a
push edi
call fcn.005b12a2
add esp, 0x10
jmp 0x5b21ae
push ebx
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [esi + 0x10]
push edx
mov ecx, dword [esi + 0x174]
push ecx
call fcn.0055e212
add esp, 0x10
mov ebx, eax
test ebx, ebx
jne 0x5b2192
mov eax, dword [esi + 0x174]
push eax
mov edx, dword [esi + 0x10]
push edx
push 0x6172540a
push edi
call fcn.005b12a2
add esp, 0x10
jmp 0x5b21a5
mov ecx, dword [ebp - 0x24]
push ecx
push ebx
push 0x6372540a
push edi
call fcn.005b12a2
add esp, 0x10
mov eax, dword [ebp - 0x24]
push eax
call fcn.00605100
mov edx, dword [esi]
cmp edx, dword [0x4d7364]
jne 0x5b228a
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
lea eax, [eax + eax*2]
mov edx, dword [eax*4 + 0x4bb850]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x5b227d
mov ecx, dword [ebp - 4]
lea ecx, [ecx + ecx*2]
mov eax, dword [ecx*4 + 0x4bb854]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
add edx, 4
cmp edx, 0x1000
ja 0x5b227d
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x5b226b
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
lea eax, [eax + ebx - 1]
jmp 0x5b2212
dec ebx
dec eax
test ebx, ebx
jle 0x5b221b
cmp byte [eax], 0
je 0x5b2210
mov dx, word [ebp - 4]
test ebx, ebx
mov word [ebp - 0x1448], dx
mov cx, word [ebp - 8]
mov word [ebp - 0x1446], cx
jle 0x5b2249
push ebx
mov eax, dword [ebp - 0x24]
push eax
lea edx, [ebp - 0x1444]
push edx
call fcn.005f953a
add esp, 0xc
lea ecx, [ebp - 0x1448]
push ecx
add ebx, 4
push ebx
push 0x6176530a
push edi
call fcn.005b12a2
add esp, 0x10
inc dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x24], eax
mov edx, dword [ebp - 4]
lea edx, [edx + edx*2]
mov ecx, dword [edx*4 + 0x4bb858]
cmp ecx, dword [ebp - 8]
jg 0x5b2204
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x25
jl 0x5b21c1
push esi
call fcn.005f421e
pop ecx
mov eax, dword [esi]
add eax, dword [esi + 4]
push eax
mov edx, dword [esi]
push edx
push 0x4e316c
call fcn.005ab5d2
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x5b2353
mov ebx, dword [ebp - 4]
mov eax, ebx
shl ebx, 6
add ebx, eax
lea ebx, [eax + ebx*2]
shl ebx, 2
add ebx, dword [0x4e3288]
jmp 0x5b2339
mov edx, dword [ebx]
lea ecx, [ebp - 0x1440]
sub edx, dword [esi]
mov dword [ebp - 0x1448], edx
lea edx, [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x1444], eax
push eax
push edx
push ecx
call fcn.005f953a
add esp, 0xc
mov eax, dword [ebx + 4]
push eax
lea edx, [ebx + 0x10c]
push edx
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x1440]
add ecx, eax
push ecx
call fcn.005f953a
add esp, 0xc
lea edx, [ebp - 0x1448]
push edx
mov ecx, dword [ebx + 4]
add ecx, ecx
add ecx, 8
push ecx
push 0x7461500a
push edi
call fcn.005b12a2
add esp, 0x10
inc dword [ebp - 4]
add ebx, 0x20c
mov eax, dword [ebp - 4]
cmp eax, dword [0x4e3270]
jge 0x5b2353
mov edx, dword [ebx]
mov ecx, dword [esi]
add ecx, dword [esi + 4]
cmp edx, ecx
jb 0x5b22cc
push esi
push edi
call fcn.005ecde2
add esp, 8
push 0
push 0
push 0x646e450a
push edi
call fcn.005b12a2
add esp, 0x10
push edi
call fcn.005faee2
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret