Function at 0x515810
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4975
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x6510e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0x3c
call fcn.00581343
mov edx, eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x24], edx
mov esi, edx
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [edx + 4], edi
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
movups xmmword [edx + 0x20], xmm0
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 7
mov word [edx + 0x20], ax
mov dword [edx + 0x38], eax
mov dword [edx], vtable.nana::widgets::skeletons::text_editor::undo_backspace.0
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x70]
mov byte [ebp - 0x15], 1
cmp eax, dword [edi + 0x78]
jne 0x515aec
mov eax, dword [edi + 0x74]
cmp eax, dword [edi + 0x7c]
jne 0x515aec
mov ecx, dword [edi]
mov eax, dword [edi + 0x84]
add ecx, 0x84
cmp dword [edi + 0x80], 0
mov dword [ebp - 0x28], ecx
je 0x515a33
dec dword [edi + 0x80]
cmp eax, dword [ecx + 0x10]
jae 0x51591a
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x1c], eax
dec ecx
add eax, dword [edi + 0x84]
and ecx, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
mov ecx, dword [eax + ecx*4]
jmp 0x51591d
add ecx, 0x34
mov eax, dword [edx + 4]
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x80]
mov eax, dword [eax + 0x84]
mov dword [edx + 0xc], eax
mov dword [edx + 8], ecx
mov edx, esp
mov eax, dword [edi + 0x80]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 0x30]
jb 0x515c40
sub ecx, dword [ebp - 0x30]
mov esi, 1
cmp ecx, esi
cmovb esi, ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x2c]
jb 0x515981
mov eax, dword [eax]
mov ecx, dword [ebp - 0x30]
push dword [ebp - 0x14]
lea eax, [eax + ecx*2]
mov ecx, edx
push eax
call fcn.00411991
mov ecx, dword [ebp - 0x24]
call fcn.0050ed20
mov eax, dword [edi]
push dword [edi + 0x84]
mov ecx, dword [eax + 0xf0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [ebp - 0x28]
push 1
push dword [edi + 0x80]
mov dword [ebp - 0x1c], eax
push dword [edi + 0x84]
call fcn.0051c9b0
mov ecx, dword [edi + 0x84]
mov dword [ebp - 0x14], ecx
mov ecx, edi
call fcn.00514130
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
lea ecx, [eax + 1]
mov dword [ebp - 0x24], ecx
cmp eax, ecx
je 0x515a0b
mov esi, eax
nop dword [eax]
mov ecx, dword [edi]
push edx
push esi
mov ecx, dword [ecx + 0xf0]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edx, dword [ebp - 0x30]
inc esi
cmp esi, dword [ebp - 0x24]
jne 0x5159f0
mov esi, dword [ebp - 0x2c]
mov ecx, edi
call fcn.00519ca0
test al, al
jne 0x515b28
push dword [ebp - 0x1c]
mov ecx, edi
push dword [edi + 0x84]
call fcn.005179d0
mov byte [ebp - 0x15], 0
jmp 0x515b28
test eax, eax
je 0x515ada
lea edx, [eax - 1]
mov dword [edi + 0x84], edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ecx + 0x10]
jae 0x515a68
mov eax, dword [ecx + 0xc]
lea ecx, [eax + edx]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
dec eax
and ecx, eax
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
mov ecx, edx
mov edx, dword [ebp - 0x1c]
jmp 0x515a6b
lea eax, [ecx + 0x34]
mov eax, dword [eax + 0x10]
push edx
mov dword [edi + 0x80], eax
call fcn.0051c5e0
mov eax, dword [edi]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax + 0xf0]
mov edx, dword [edx + 0x84]
mov eax, dword [ecx]
mov edi, dword [eax + 0x10]
lea eax, [edx + 1]
push eax
push edx
call edi
mov edx, dword [ebp - 0x24]
sub esp, 0x18
xorps xmm0, xmm0
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x80]
mov eax, dword [eax + 0x84]
mov dword [edx + 0xc], eax
mov eax, esp
mov dword [edx + 8], ecx
mov ecx, edx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 1
mov dword [eax + 0x14], 7
mov dword [eax], 0xa
call fcn.0050ed20
mov edi, dword [ebp - 0x14]
jmp 0x515b28
mov eax, dword [vtable.nana::widgets::skeletons::text_editor::undo_backspace.0]
xor esi, esi
push 1
mov ecx, edx
mov dword [ebp - 0x2c], esi
call eax
jmp 0x515b28
mov ecx, edx
call fcn.0051c4b0
push ecx
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00518c40
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x80], ecx
mov dword [edi + 0x84], eax
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x80]
mov eax, dword [eax + 0x84]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
cmp byte [ebx + 8], 0
je 0x515b58
mov eax, esi
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, dword [edi]
push eax
call fcn.0051c350
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x515b58
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
mov ecx, edi
call fcn.00517d70
cmp byte [ebx + 0xc], 0
je 0x515bb6
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
cmp byte [eax + 0x9c], 0
lea ecx, [eax + 0x98]
mov dword [ebp - 0x1c], ecx
jne 0x515b98
mov edx, dword [ecx]
test edx, edx
je 0x515b91
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + 0x9c], 1
cmp byte [eax + 0x9d], 0
je 0x515bb6
mov ecx, dword [ecx]
test ecx, ecx
je 0x515baf
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x9d], 0
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
cmp byte [eax + 0x9c], 0
lea ecx, [eax + 0x98]
mov dword [ebp - 0x1c], ecx
jne 0x515be7
mov edx, dword [ecx]
test edx, edx
je 0x515be0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + 0x9c], 1
cmp byte [eax + 0x9d], 0
je 0x515c05
mov ecx, dword [ecx]
test ecx, ecx
je 0x515bfe
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x9d], 0
cmp byte [ebp - 0x15], 0
je 0x515c1e
mov ecx, edi
call fcn.00519ca0
mov eax, dword [edi]
mov dword [eax + 0xd8], 1
test esi, esi
je 0x515c2a
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00403d10
int3