Function at 0x505ec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x53ef28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov dword [esp + 8], ecx
push esi
push edi
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x34]
call fcn.005085b0
mov esi, dword [edi]
mov edx, dword [0x971060]
lea ebx, [edi + 8]
cmp esi, edx
mov dword [esp + 0x14], edi
mov ebp, ebx
jne 0x505f06
mov esi, dword [ebx]
jmp 0x505f24
mov eax, dword [ebx]
cmp eax, edx
je 0x505f24
mov ecx, dword [eax]
cmp ecx, edx
je 0x505f1a
mov eax, ecx
mov ecx, dword [eax]
cmp ecx, edx
jne 0x505f12
mov esi, dword [eax + 8]
lea ebp, [eax + 8]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
call fcn.005285ae
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x505f9a
mov eax, dword [edi]
mov dword [eax + 4], ecx
mov edx, dword [edi]
mov dword [ecx], edx
mov eax, dword [ebx]
cmp ecx, eax
jne 0x505f49
mov dword [esi + 4], ecx
jmp 0x505f5e
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
mov dword [eax], esi
mov edx, dword [ebx]
mov dword [ebp], edx
mov eax, dword [ebx]
mov dword [eax + 4], ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
cmp dword [eax + 4], edi
jne 0x505f6f
mov dword [eax + 4], ecx
jmp 0x505f7d
mov eax, dword [edi + 4]
cmp dword [eax], edi
jne 0x505f7a
mov dword [eax], ecx
jmp 0x505f7d
mov dword [eax + 8], ecx
mov edx, dword [edi + 4]
mov dword [esp + 0x14], edi
mov dword [ecx + 4], edx
mov edx, dword [edi + 0x14]
mov eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
mov dword [edi + 0x14], eax
mov ecx, edi
jmp 0x506029
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [edx + 4]
cmp dword [eax + 4], edi
jne 0x505fb1
mov dword [eax + 4], esi
jmp 0x505fbf
mov eax, dword [edi + 4]
cmp dword [eax], edi
jne 0x505fbc
mov dword [eax], esi
jmp 0x505fbf
mov dword [eax + 8], esi
mov eax, dword [edx + 4]
mov dword [esp + 0x18], eax
cmp dword [eax], edi
jne 0x505ff7
mov ebp, dword [0x971060]
cmp dword [ebx], ebp
jne 0x505fdb
mov ebx, dword [edi + 4]
mov dword [eax], ebx
jmp 0x505ff7
mov ebx, dword [esi]
mov edx, esi
cmp ebx, ebp
je 0x505ff1
mov eax, ebx
mov edx, eax
mov eax, dword [edx]
cmp eax, ebp
jne 0x505fe5
mov eax, dword [esp + 0x18]
mov dword [eax], edx
mov edx, dword [esp + 0x10]
mov ebp, dword [edx + 4]
cmp dword [ebp + 8], edi
jne 0x506025
mov ebx, dword [0x971060]
mov eax, dword [edi]
cmp eax, ebx
jne 0x506010
mov edx, dword [edi + 4]
jmp 0x506022
mov eax, dword [esi + 8]
mov edx, esi
cmp eax, ebx
je 0x506022
mov edx, eax
mov eax, dword [edx + 8]
cmp eax, ebx
jne 0x506019
mov dword [ebp + 8], edx
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 0x14]
mov edi, 1
xor ebp, ebp
cmp eax, edi
jne 0x5062a1
mov eax, dword [ebx + 4]
cmp esi, dword [eax + 4]
je 0x50629e
cmp dword [esi + 0x14], edi
jne 0x50629e
mov eax, dword [esi + 4]
cmp esi, dword [eax]
jne 0x5060c5
mov eax, dword [eax + 8]
cmp dword [eax + 0x14], ebp
jne 0x5060ac
mov dword [eax + 0x14], edi
mov ecx, dword [esi + 4]
mov dword [ecx + 0x14], ebp
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov edx, dword [ecx]
cmp edx, dword [0x971060]
je 0x506080
mov dword [edx + 4], eax
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [ebx + 4]
cmp eax, dword [edx + 4]
jne 0x506093
mov dword [edx + 4], ecx
jmp 0x5060a1
mov edx, dword [eax + 4]
cmp eax, dword [edx]
jne 0x50609e
mov dword [edx], ecx
jmp 0x5060a1
mov dword [edx + 8], ecx
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
cmp dword [ecx + 0x14], edi
jne 0x506148
mov edx, dword [eax + 8]
cmp dword [edx + 0x14], edi
jne 0x506148
jmp 0x506131
mov eax, dword [eax]
cmp dword [eax + 0x14], ebp
jne 0x50611a
mov dword [eax + 0x14], edi
mov eax, dword [esi + 4]
mov dword [eax + 0x14], ebp
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov edx, dword [ecx + 8]
cmp edx, dword [0x971060]
je 0x5060ed
mov dword [edx + 4], eax
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [ebx + 4]
cmp eax, dword [edx + 4]
jne 0x506100
mov dword [edx + 4], ecx
jmp 0x50610f
mov edx, dword [eax + 4]
cmp eax, dword [edx + 8]
jne 0x50610d
mov dword [edx + 8], ecx
jmp 0x50610f
mov dword [edx], ecx
mov dword [ecx + 8], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x14], edi
jne 0x5061fa
mov edx, dword [eax]
cmp dword [edx + 0x14], edi
jne 0x5061fa
mov dword [eax + 0x14], ebp
mov eax, dword [ebx + 4]
mov esi, dword [esi + 4]
cmp esi, dword [eax + 4]
jne 0x506047
jmp 0x50629e
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x14], edi
jne 0x50619b
mov edx, dword [eax]
mov dword [edx + 0x14], edi
mov ecx, dword [eax]
mov dword [eax + 0x14], ebp
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov edx, dword [ecx + 8]
cmp edx, dword [0x971060]
je 0x50616d
mov dword [edx + 4], eax
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [ebx + 4]
cmp eax, dword [edx + 4]
jne 0x506180
mov dword [edx + 4], ecx
jmp 0x50618f
mov edx, dword [eax + 4]
cmp eax, dword [edx + 8]
jne 0x50618d
mov dword [edx + 8], ecx
jmp 0x50618f
mov dword [edx], ecx
mov dword [ecx + 8], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 4]
mov dword [ecx + 0x14], edi
mov edx, dword [eax + 8]
mov dword [edx + 0x14], edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov edx, dword [ecx]
cmp edx, dword [0x971060]
je 0x5061c8
mov dword [edx + 4], eax
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [ebx + 4]
cmp eax, dword [edx + 4]
jne 0x5061e0
mov dword [edx + 4], ecx
mov dword [ecx], eax
jmp 0x50629b
mov edx, dword [eax + 4]
cmp eax, dword [edx]
jne 0x5061f0
mov dword [edx], ecx
mov dword [ecx], eax
jmp 0x50629b
mov dword [edx + 8], ecx
mov dword [ecx], eax
jmp 0x50629b
mov ecx, dword [eax]
cmp dword [ecx + 0x14], edi
jne 0x50624a
mov edx, dword [eax + 8]
mov dword [edx + 0x14], edi
mov ecx, dword [eax + 8]
mov dword [eax + 0x14], ebp
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov edx, dword [ecx]
cmp edx, dword [0x971060]
je 0x50621f
mov dword [edx + 4], eax
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [ebx + 4]
cmp eax, dword [edx + 4]
jne 0x506232
mov dword [edx + 4], ecx
jmp 0x506240
mov edx, dword [eax + 4]
cmp eax, dword [edx]
jne 0x50623d
mov dword [edx], ecx
jmp 0x506240
mov dword [edx + 8], ecx
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 4]
mov dword [ecx + 0x14], edi
mov edx, dword [eax]
mov dword [edx + 0x14], edi
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov edx, dword [ecx + 8]
cmp edx, dword [0x971060]
je 0x506276
mov dword [edx + 4], eax
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [ebx + 4]
cmp eax, dword [edx + 4]
jne 0x506289
mov dword [edx + 4], ecx
jmp 0x506298
mov edx, dword [eax + 4]
cmp eax, dword [edx + 8]
jne 0x506296
mov dword [edx + 8], ecx
jmp 0x506298
mov dword [edx], ecx
mov dword [ecx + 8], eax
mov dword [eax + 4], ecx
mov dword [esi + 0x14], edi
lea ecx, [esp + 0x1c]
call fcn.0052864a
mov edi, dword [esp + 0x14]
lea esi, [edi + 0xc]
mov dword [esp + 0x18], esi
lea ecx, [esi + 4]
mov dword [esp + 0x28], ebp
call fcn.0052bb0e
mov ecx, esi
mov dword [esp + 0x28], 0xffffffff
call fcn.0052bb0e
push edi
call fcn.0052b878
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x38]
add esp, 4
dec eax
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x30]
pop edi
pop esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8