Function at 0x46e4e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d5c78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x507334]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x50c868]
mov edx, dword [eax + 0xc]
mov ecx, 0x50c868
call edx
lea esi, [eax + 0x10]
mov eax, dword [0x50c868]
mov edx, dword [eax + 0xc]
mov ecx, 0x50c868
mov dword [esp + 0x20], esi
call edx
mov edi, dword [esi - 0x10]
lea ebx, [eax + 0x10]
lea eax, [esi - 0x10]
xor edx, edx
cmp dword [eax + 4], edx
mov dword [esp + 0x24], ebx
je 0x46e58c
cmp dword [eax + 0xc], edx
lea ecx, [eax + 0xc]
jge 0x46e564
cmp dword [esi - 8], edx
jge 0x46e55c
push 0x80070057
call fcn.00408113
mov dword [esi - 0xc], edx
mov word [esi], dx
jmp 0x46e58c
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e57a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
xor edx, edx
cmp dword [ebx - 0xc], edx
mov esi, dword [ebx - 0x10]
lea eax, [ebx - 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
je 0x46e5e6
cmp dword [eax + 0xc], edx
lea ecx, [eax + 0xc]
jge 0x46e5be
cmp dword [ebx - 8], edx
jge 0x46e5b6
push 0x80070057
call fcn.00408113
mov dword [ebx - 0xc], edx
mov word [ebx], dx
jmp 0x46e5e6
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e5d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
xor edx, edx
mov dword [esp + 0x1c], edx
lea ebx, [esp + 0x14]
mov dword [esp + 0x38], edx
call fcn.00455882
test eax, eax
je 0x46e668
mov eax, ebx
call fcn.00455a8a
test eax, eax
je 0x46e668
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e62e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e64e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x14]
call fcn.0046e7a0
test eax, eax
je 0x46e6e2
lea esi, [esp + 0x14]
call fcn.004559df
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e6ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e6cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e70a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e72a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4