Function at 0x406f80
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52ea72
mov eax, dword fs:[0]
push eax
sub esp, 0x8a4
mov eax, dword [0x55c4c8]
xor eax, esp
mov dword [esp + 0x89c], eax
push ebx
push esi
mov eax, dword [0x55c4c8]
xor eax, esp
push eax
lea eax, [esp + 0x8b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x800
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0xa8]
push ebx
push ecx
mov dword [esp + 0x40], eax
call fcn.0050e6a0
mov edx, dword [ebp + 0xc]
add esp, 0xc
push edx
lea eax, [esp + 0xa8]
push str.and_bm_parent_d_order_by_bm_id_desc
push eax
call fcn.0050a7b8
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
call fcn.00401170
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0x8c0], ebx
call fcn.004069c0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x54]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov dword [edi + 4], eax
mov dword [edi + 8], 0xffffffff
mov dword [esp + 0x28], vtable.Converter::Converters.0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x8b8], 1
xor ecx, ecx
mov eax, esi
mov word [esp + 0x10], cx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x407066
sub eax, ecx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x14]
call fcn.00406180
mov edx, esi
push edx
lea esi, [esp + 0x3c]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8bc], 2
call fcn.00408800
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x14]
push eax
mov byte [esp + 0x8c4], 3
call fcn.004037d0
cmp dword [esp + 0x50], 0x10
jb 0x4070c0
mov eax, dword [esp + 0x3c]
push eax
call fcn.0050a226
add esp, 4
mov byte [esp + 0x8b8], 1
cmp dword [esp + 0x24], 8
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x4070ec
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0050a226
add esp, 4
mov esi, dword [esp + 0x34]
xor edx, edx
mov eax, esi
mov word [esp + 0x10], dx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
lea edx, [eax + 2]
jmp 0x407110
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407110
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x14]
call fcn.00406180
mov eax, esi
push eax
lea esi, [esp + 0x3c]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8bc], 4
call fcn.00408800
push 0xffffffffffffffff
push ebx
lea esi, [edi + 0x30]
push eax
mov ecx, esi
mov byte [esp + 0x8c4], 5
call fcn.004037d0
cmp dword [esp + 0x50], 0x10
jb 0x40716c
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0050a226
add esp, 4
mov byte [esp + 0x8b8], 1
cmp dword [esp + 0x24], 8
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x407198
mov edx, dword [esp + 0x10]
push edx
call fcn.0050a226
add esp, 4
push 0x800
lea eax, [esp + 0xa8]
push ebx
push eax
call fcn.0050e6a0
mov eax, 0x10
add esp, 0xc
cmp dword [esi + 0x18], eax
jb 0x4071bd
mov esi, dword [esi + 4]
jmp 0x4071c0
add esi, 4
cmp dword [edi + 0x2c], eax
jb 0x4071ca
mov eax, dword [edi + 0x18]
jmp 0x4071cd
lea eax, [edi + 0x18]
push esi
push eax
call fcn.0040e180
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add esp, 4
push eax
mov eax, dword [edi + 8]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
lea edx, [esp + 0xbc]
push str.Insert_into_bookmark_main_bm_prev_bm_next_bm_parent_bm_type_bm_title_bm_url__values__d___d__d__d__s__s_
push edx
call fcn.0050a7b8
add esp, 0x20
lea eax, [esp + 0xa4]
push eax
call fcn.00409a60
push 0x800
lea ecx, [esp + 0xa8]
push ebx
push ecx
call fcn.0050e6a0
mov edx, dword [ebp + 0xc]
add esp, 0xc
push edx
lea eax, [esp + 0xa8]
push str.and_bm_parent_d_order_by_bm_id_desc
push eax
call fcn.0050a7b8
add esp, 0xc
push edi
lea ecx, [esp + 0xa8]
push ecx
call fcn.004069c0
mov edx, dword [edi]
push 0x800
lea eax, [esp + 0xa8]
push ebx
push eax
mov dword [esp + 0x68], edx
call fcn.0050e6a0
mov ecx, dword [esp + 0x60]
add esp, 0xc
push ecx
lea edx, [esp + 0xa8]
push str.and_bm_id_d
push edx
call fcn.0050a7b8
add esp, 0xc
lea edx, [esp + 0x54]
lea ecx, [esp + 0xa4]
call fcn.00406eb0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40729e
push eax
call fcn.0050a226
add esp, 4
mov esi, 0x10
cmp dword [esp + 0x9c], esi
jb 0x4072bc
mov eax, dword [esp + 0x88]
push eax
call fcn.0050a226
add esp, 4
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
cmp dword [esp + 0x80], esi
jb 0x4072eb
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0050a226
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x8b0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x89c]
xor ecx, esp
call fcn.0050a231
mov esp, ebp
pop ebp
ret 0xc