Function at 0x4a1a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5be588
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x148]
lea ecx, [esp + 0x30]
call fcn.0055ba00
mov ebx, eax
mov dword [esp + 0x48], 0
call fcn.004317d0
mov eax, dword [eax]
sub eax, 0x10
call fcn.00406580
lea esi, [eax + 0x10]
mov dword [esp + 0x3c], esi
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1abd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x14c]
lea ecx, [esp + 0x34]
call fcn.0055ba00
mov ebx, eax
mov byte [esp + 0x48], 3
call fcn.004317d0
mov eax, dword [eax]
sub eax, 0x10
call fcn.00406580
lea ebx, [eax + 0x10]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x48], 5
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 0x4a1b0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 0xc]
neg eax
sbb eax, eax
and eax, esi
mov ebp, eax
mov eax, dword [ebx - 0xc]
neg eax
sbb eax, eax
and eax, ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], eax
call fcn.004e6140
xor esi, esi
test eax, eax
jne 0x4a1b41
mov dword [esp + 0x24], esi
cmp dword [edi + 0x164], esi
jne 0x4a1b49
mov dword [esp + 0x24], 1
cmp ebp, esi
jne 0x4a1b66
cmp dword [esp + 0x20], esi
jne 0x4a1b66
mov eax, dword [edi + 0x150]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push eax
call edx
jmp 0x4a1c78
mov eax, dword [edi + 0x150]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push eax
mov byte [esp + 0x1f], 1
call edx
xor ebp, ebp
cmp eax, esi
mov dword [esp + 0x28], eax
jle 0x4a1c78
jmp 0x4a1b90
mov bl, 1
mov byte [esp + 0x48], 6
mov eax, dword [edi + 0x150]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
push ebp
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4a1c05
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x4a1bda
push ecx
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push eax
call edx
push eax
call fcn.0058913b
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
mov ecx, dword [esp + 0x20]
cmp ecx, esi
je 0x4a1c01
test bl, bl
je 0x4a1c4d
push ecx
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
push eax
call edx
push eax
call fcn.0058913b
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
test bl, bl
je 0x4a1c4d
cmp byte [esp + 0x1b], 0
je 0x4a1c28
mov ecx, dword [edi + 0x134]
mov dword [edi + 0x158], esi
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
mov byte [esp + 0x1b], 0
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
push ecx
mov esi, eax
push eax
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x20]
push eax
push esi
call edx
push eax
push edi
call fcn.004a13a0
mov eax, dword [esp + 0x1c]
xor esi, esi
mov byte [esp + 0x48], 5
cmp eax, esi
je 0x4a1c5e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
inc ebp
cmp ebp, dword [esp + 0x28]
jl 0x4a1b90
cmp byte [esp + 0x1b], 0
mov ebx, dword [esp + 0x2c]
je 0x4a1c85
mov eax, dword [esp + 0x28]
cmp dword [edi + 0x158], eax
jge 0x4a1c85
call fcn.004a1930
lea eax, [ebx - 0x10]
mov byte [esp + 0x48], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1ca6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1cce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret