Function at 0x5158a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9119
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], 0
mov ecx, dword [edx]
push esi
mov esi, dword [edx + 8]
add ecx, esi
mov edx, dword [edx + 4]
sub edx, esi
mov dword [ebp - 0x1c], ecx
and eax, 1
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], eax
je 0x515978
xor eax, eax
mov dword [ebp - 0x3c], eax
nop word [eax + eax]
mov edi, dword [eax + 0x5b8be8]
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x515910
push 0
sub esi, ecx
mov ecx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push edi
call fcn.0058ae30
mov edx, eax
add esp, 0xc
cmp edx, 0xffffffff
je 0x515a4f
test edx, edx
je 0x515957
mov eax, dword [ebp - 0x1c]
mov cl, byte [edx + eax - 1]
cmp cl, 0x20
je 0x515957
cmp cl, 0xa
je 0x515957
cmp cl, 0xd
je 0x515957
cmp cl, 9
jne 0x515a2f
mov ecx, dword [ebp - 0x1c]
lea eax, [edx + esi]
mov al, byte [eax + ecx]
test al, al
je 0x515978
cmp al, 0x20
je 0x515978
cmp al, 0xa
je 0x515978
cmp al, 0xd
je 0x515978
cmp al, 9
jne 0x515a32
xor edx, edx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x98], 0x5cf98c
mov esi, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], edi
test esi, esi
je 0x5159c2
mov al, byte [ecx + edi]
cmp al, 0x20
je 0x5159ba
cmp al, 0xa
je 0x5159ba
cmp al, 0xd
je 0x5159ba
cmp al, 9
jne 0x5159bf
inc edi
cmp edi, esi
jb 0x5159a7
mov dword [ebp - 0x20], edi
mov eax, esi
mov dword [ebp - 0x14], edi
sub eax, edi
je 0x515b5e
nop
lea ecx, [ebp - 0x1c]
call fcn.00511650
mov dword [ebp - 0x28], eax
test eax, eax
je 0x515f97
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
add esi, edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x30], esi
xor edi, edi
mov ecx, dword [edi + 0x5b8be8]
mov edx, eax
sub esi, ecx
nop dword [eax]
mov al, byte [esi + ecx]
cmp al, byte [ecx]
jne 0x515a15
inc ecx
sub edx, 1
jne 0x515a00
cmp byte [ecx], dl
je 0x515ac8
inc dword [ebp - 0x24]
add edi, 0xc
cmp edi, 0xcc
jae 0x515b14
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
jmp 0x5159f2
mov ecx, dword [ebp - 0x1c]
lea eax, [edx + 1]
mov edx, dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push edi
call fcn.0058ae30
mov edx, eax
add esp, 0xc
cmp edx, 0xffffffff
jne 0x515934
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
add eax, 0xc
mov dword [ebp - 0x3c], eax
cmp eax, 0xcc
jb 0x515900
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00517720
mov esi, dword [ebp - 0x40]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, ecx
test eax, eax
je 0x515a88
lock inc dword [eax + 4]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
test ecx, ecx
je 0x515f85
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x515f85
mov eax, dword [ecx]
push 1
call dword [eax]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x24], 0xffffffff
je 0x515b14
mov esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x94]
add esi, dword [ebp - 0x4c]
lea eax, [esi + 1]
push eax
call fcn.00517070
cmp esi, 8
jae 0x515afe
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x94]
mov ecx, dword [ebp - 0x28]
lea eax, [eax + esi*8]
mov dword [eax], edi
mov dword [eax + 4], ecx
jmp 0x515b1a
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
lea eax, [eax + esi*8]
add eax, 0xffffffc0
mov dword [eax], edi
mov dword [eax + 4], ecx
jmp 0x515b1a
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
add edi, ecx
mov edx, dword [ebp - 0x10]
xor ecx, ecx
lea esi, [edi + esi]
sub edx, edi
je 0x515b48
nop dword [eax + eax]
mov al, byte [esi + ecx]
cmp al, 0x20
je 0x515b43
cmp al, 0xa
je 0x515b43
cmp al, 0xd
je 0x515b43
cmp al, 9
jne 0x515b48
inc ecx
cmp ecx, edx
jb 0x515b30
mov eax, dword [ebp - 0x10]
add edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
sub eax, edi
jne 0x5159d0
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x54]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x3c], ecx
je 0x515e3a
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
nop dword [eax]
cmp byte [eax + 0x5b8bec], 0
je 0x515c3c
lea edi, [ecx - 1]
mov dword [ebp - 0x2c], edi
cmp edi, 0xffffffff
je 0x515cdc
lea eax, [ebp - 0x94]
lea edx, [edx + edi*8]
lea eax, [eax + edi*8]
add edx, 0xffffffc0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], edx
cmp edi, 8
jae 0x515bbd
mov esi, dword [eax + 4]
mov ecx, eax
jmp 0x515bc2
mov esi, dword [edx + 4]
mov ecx, edx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x5b8be8]
test esi, esi
je 0x515bf2
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
sub edx, dword [edi + 0x5b8be8]
mov edi, dword [ebp - 0x2c]
add edx, ecx
mov cl, byte [edx + eax]
cmp cl, byte [eax]
jne 0x515c18
inc eax
sub esi, 1
jne 0x515be2
mov edx, dword [ebp - 0x24]
cmp byte [eax], 0
jne 0x515c1b
lea edx, [edi*8]
cmp edi, 8
jae 0x515cf8
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x94]
jmp 0x515d01
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
dec edi
sub eax, 8
mov dword [ebp - 0x2c], edi
sub edx, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], edx
cmp edi, 0xffffffff
jne 0x515bb1
jmp 0x515cd6
xor edi, edi
lea ecx, [ebp - 0x94]
add edx, 0xffffffc0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], edx
cmp edi, 8
jae 0x515c5c
mov esi, dword [ecx + 4]
mov eax, ecx
jmp 0x515c61
mov esi, dword [edx + 4]
mov eax, edx
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x5b8be8]
test esi, esi
je 0x515c91
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
sub ecx, dword [edi + 0x5b8be8]
mov edi, dword [ebp - 0x30]
add ecx, eax
mov al, byte [ecx + edx]
cmp al, byte [edx]
jne 0x515cb7
inc edx
sub esi, 1
jne 0x515c81
mov ecx, dword [ebp - 0x24]
cmp byte [edx], 0
jne 0x515cba
lea edx, [edi*8]
cmp edi, 8
jae 0x515d99
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x94]
jmp 0x515da2
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
inc edi
add ecx, 8
mov dword [ebp - 0x30], edi
add edx, 8
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], edx
cmp edi, dword [ebp - 0x3c]
jb 0x515c50
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x28]
add eax, 0xc
mov dword [ebp - 0x20], eax
cmp eax, 0xcc
jae 0x515f97
mov edx, dword [ebp - 0x50]
jmp 0x515b80
mov ecx, dword [ebp - 0x50]
lea eax, [ecx - 0x3c]
add ecx, 0xffffffc0
add eax, edx
mov dword [ebp - 0x30], 0
add ecx, edx
mov ecx, dword [ecx]
add ecx, dword [eax]
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x10], ecx
lea eax, [eax + eax*2]
mov esi, dword [eax*4 + 0x5b8bf0]
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
cmp edi, 8
jae 0x515d3d
lea eax, [ebp - 0x94]
add eax, edx
jmp 0x515d46
mov eax, dword [ebp - 0x50]
lea eax, [eax + edi*8]
add eax, 0xffffffc0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
push edi
call esi
add esp, 0x10
mov dword [ebp - 0x44], 1
push 0
push 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 2
call fcn.004555d0
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x50]
lea eax, [ecx - 0x3c]
add ecx, 0xffffffc0
add eax, edx
mov dword [ebp - 0x30], 0
add ecx, edx
mov ecx, dword [ecx]
add ecx, dword [eax]
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x10], ecx
lea eax, [eax + eax*2]
mov esi, dword [eax*4 + 0x5b8bf0]
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
cmp edi, 8
jae 0x515dde
lea eax, [ebp - 0x94]
add eax, edx
jmp 0x515de7
mov eax, dword [ebp - 0x50]
lea eax, [eax + edi*8]
add eax, 0xffffffc0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
push edi
call esi
add esp, 0x10
mov dword [ebp - 0x44], 1
push 0
push 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 4
call fcn.004555d0
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
xor esi, esi
mov ecx, dword [ebp - 0x1c]
test edx, edx
je 0x515e5e
mov al, byte [ecx + esi]
cmp al, 0x20
je 0x515e59
cmp al, 0xa
je 0x515e59
cmp al, 0xd
je 0x515e59
cmp al, 9
jne 0x515e5e
inc esi
cmp esi, edx
jb 0x515e46
mov eax, edx
mov dword [ebp - 0x14], esi
sub eax, esi
je 0x515f1d
cmp byte [ecx + esi], 0x28
jne 0x515f1d
lea ecx, [ebp - 0x1c]
call fcn.00511650
mov edi, eax
mov dword [ebp + 8], edi
lea eax, [edi + esi]
test edi, edi
je 0x515f97
cmp edi, 2
jb 0x515f97
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
sub dword [ebp - 0x10], eax
lea edx, [eax + edx]
je 0x515ec1
mov edi, dword [ebp - 0x10]
mov al, byte [edx + ecx]
cmp al, 0x20
je 0x515eb9
cmp al, 0xa
je 0x515eb9
cmp al, 0xd
je 0x515eb9
cmp al, 9
jne 0x515ebe
inc ecx
cmp ecx, edi
jb 0x515ea6
mov edi, dword [ebp + 8]
cmp ecx, dword [ebp - 0x10]
jne 0x515f97
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
inc eax
add eax, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
lea eax, [edi - 2]
push 0
mov dword [ebp - 0x18], eax
call fcn.005158a0
add esp, 4
mov dword [ebp - 0x44], 1
push 0
push 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 6
call fcn.004555d0
mov eax, dword [ebp - 0x40]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x2c], 0
je 0x515f97
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00517720
mov esi, dword [ebp - 0x40]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, ecx
test eax, eax
je 0x515f45
lock inc dword [eax + 4]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
test ecx, ecx
je 0x515f72
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x515f72
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
push 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 8
call fcn.004555d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
call fcn.005115a0
push 0x600f70
mov eax, ecx
push eax
call fcn.005936f7
int3