Function at 0x10006ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10015f78
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001c17c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
call fcn.10003290
mov edx, dword [0x1001d1e4]
mov eax, dword [edx + 0xc]
xor esi, esi
mov ecx, 0x1001d1e4
mov dword [esp + 0x30], esi
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x30], 1
call fcn.10001610
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
cmp ecx, esi
mov dword [esp + 0x24], ecx
jle 0x10006cb4
jmp 0x10006b39
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
test esi, esi
jl 0x10006cb4
cmp esi, ecx
jg 0x10006cb4
lea ecx, [eax + esi*2]
push 0x1001779c
push ecx
call fcn.10009c92
add esp, 8
test eax, eax
je 0x10006cb4
sub eax, dword [esp + 0x14]
sar eax, 1
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10006cb4
mov edx, ebp
sub edx, esi
push edx
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.10001d50
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
mov byte [esp + 0x30], 2
cmp eax, esi
je 0x10006be6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x10006bd4
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10006bd4
push eax
call fcn.100016d0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x10006bcb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x38], edi
jmp 0x10006be6
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.10001b60
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006c0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.10001e10
mov eax, dword [eax]
push str.Set_Cookie:
push eax
call fcn.1000b396
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006c55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x10006ca7
mov eax, dword [edi - 0xc]
push eax
push 0xc
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x44]
call fcn.10001d50
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [esp + 0x40]
push eax
mov byte [esp + 0x38], 4
call fcn.10001fa0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006ca7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp + 2]
cmp esi, dword [esp + 0x24]
jl 0x10006b35
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006cd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006cfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8