Function at 0x548ba0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x573118
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x30]
lea ebp, [esi + esi + 2]
cmp ebp, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], esi
jge 0x548d51
mov ebx, dword [esp + 0x2c]
lea eax, [ebp + ebp*4]
lea eax, [ebx + eax*8]
lea ecx, [eax - 0x28]
push ecx
push eax
call dword [esp + 0x64]
add esp, 8
test al, al
je 0x548c03
sub ebp, 1
lea eax, [esi + esi*4]
lea esi, [ebx + eax*8]
lea edx, [ebp + ebp*4]
mov ecx, dword [ebx + edx*8]
lea edi, [ebx + edx*8]
mov ebx, dword [esi]
lea eax, [ecx - 0x10]
sub ebx, 0x10
cmp eax, ebx
je 0x548c63
cmp dword [ebx + 0xc], 0
jl 0x548c58
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x548c58
call fcn.00410660
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x548c4d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x14]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x548c63
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, esi
call fcn.00410570
mov ecx, dword [edi + 4]
mov ebx, dword [esi + 4]
lea eax, [ecx - 0x10]
sub ebx, 0x10
cmp eax, ebx
je 0x548cb9
cmp dword [ebx + 0xc], 0
jl 0x548cad
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x548cad
call fcn.00410660
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x548ca1
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x14]
add ecx, 0x10
mov dword [esi + 4], ecx
jmp 0x548cb9
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esi + 4]
call fcn.00410570
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], edx
mov edi, dword [edi + 0x24]
mov esi, dword [ecx]
lea eax, [edi - 0x10]
sub esi, 0x10
cmp eax, esi
mov dword [esp + 0x14], ecx
je 0x548d3b
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x548d30
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x548d30
call fcn.00410660
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x548d25
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x14]
add edi, 0x10
mov dword [ecx], edi
jmp 0x548d3b
mov ebx, dword [edi - 0xc]
push edi
mov eax, ecx
call fcn.00410570
mov esi, ebp
lea ebp, [ebp + ebp + 2]
cmp ebp, dword [esp + 0x30]
jl 0x548be5
mov eax, dword [esp + 0x30]
cmp ebp, eax
mov ebp, dword [esp + 0x2c]
jne 0x548db7
lea edx, [eax + eax*4]
lea eax, [esi + esi*4]
lea esi, [ebp + eax*8]
lea ebx, [ebp + edx*8 - 0x28]
mov eax, ebx
mov edi, esi
call fcn.004101e0
lea edi, [esi + 4]
lea eax, [ebx + 4]
call fcn.004101e0
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [ebx + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [ebx + 0x20]
mov dword [esi + 0x20], ecx
add esi, 0x24
lea eax, [ebx + 0x24]
mov edi, esi
call fcn.004101e0
mov edx, dword [esp + 0x30]
lea esi, [edx - 1]
mov eax, dword [esp + 0x5c]
push eax
sub esp, 0x28
mov ecx, esp
mov dword [esp + 0x5c], esp
push ecx
lea edi, [esp + 0x64]
call fcn.00546650
mov edx, dword [esp + 0x44]
push edx
push ebp
mov ecx, esi
call fcn.00548e60
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
add esp, 0x34
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x548e0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x548e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x548e4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret