Function at 0x50b9f0
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 0x5b9025
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x6360e8]
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.00577033
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 0x50bccc
mov eax, dword [edi + 0x74]
cmp eax, dword [edi + 0x7c]
jne 0x50bccc
mov ecx, dword [edi]
mov eax, dword [edi + 0x84]
sub ecx, 0xffffff80
cmp dword [edi + 0x80], 0
mov dword [ebp - 0x28], ecx
je 0x50bc13
dec dword [edi + 0x80]
cmp eax, dword [ecx + 0x10]
jae 0x50baf7
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 0x50bafa
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 0x50be20
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 0x50bb5e
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.0041a798
mov ecx, dword [ebp - 0x24]
call fcn.00504ee0
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.00512a50
mov ecx, dword [edi + 0x84]
mov dword [ebp - 0x14], ecx
mov ecx, edi
call fcn.0050a2a0
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 0x50bbeb
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 0x50bbd0
mov esi, dword [ebp - 0x2c]
mov ecx, edi
call fcn.0050fe00
test al, al
jne 0x50bd08
push dword [ebp - 0x1c]
mov ecx, edi
push dword [edi + 0x84]
call fcn.0050db70
mov byte [ebp - 0x15], 0
jmp 0x50bd08
test eax, eax
je 0x50bcba
lea edx, [eax - 1]
mov dword [edi + 0x84], edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ecx + 0x10]
jae 0x50bc48
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 0x50bc4b
lea eax, [ecx + 0x34]
mov eax, dword [eax + 0x10]
push edx
mov dword [edi + 0x80], eax
call fcn.00512680
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.00504ee0
mov edi, dword [ebp - 0x14]
jmp 0x50bd08
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 0x50bd08
mov ecx, edx
call fcn.00512550
push ecx
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.0050eda0
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 0x50bd38
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.005123f0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x50bd38
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
mov ecx, edi
call fcn.0050df80
cmp byte [ebx + 0xc], 0
je 0x50bd96
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
cmp byte [eax + 0x98], 0
lea ecx, [eax + 0x94]
mov dword [ebp - 0x1c], ecx
jne 0x50bd78
mov edx, dword [ecx]
test edx, edx
je 0x50bd71
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + 0x98], 1
cmp byte [eax + 0x99], 0
je 0x50bd96
mov ecx, dword [ecx]
test ecx, ecx
je 0x50bd8f
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x99], 0
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
cmp byte [eax + 0x98], 0
lea ecx, [eax + 0x94]
mov dword [ebp - 0x1c], ecx
jne 0x50bdc7
mov edx, dword [ecx]
test edx, edx
je 0x50bdc0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + 0x98], 1
cmp byte [eax + 0x99], 0
je 0x50bde5
mov ecx, dword [ecx]
test ecx, ecx
je 0x50bdde
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x99], 0
cmp byte [ebp - 0x15], 0
je 0x50bdfe
mov ecx, edi
call fcn.0050fe00
mov eax, dword [edi]
mov dword [eax + 0xd4], 1
test esi, esi
je 0x50be0a
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.00403bf0
int3