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

Disassembly:
push 0xffffffffffffffff
push 0x4e7870
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
call fcn.00428680
lea ecx, [esp + 0x30]
xor esi, esi
push ecx
mov dword [esp + 0x54], esi
call fcn.00428680
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4f669c
mov byte [esp + 0x54], 1
call fcn.00406bd0
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 2
call fcn.0046ef00
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x470845
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x4f669c
call fcn.00406bd0
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 3
call fcn.0046ef00
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470894
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov edx, eax
sub edx, dword [esp + 0x24]
mov ecx, ebp
sub ecx, edi
sar edx, 2
sar ecx, 2
mov ebx, edx
cmp edx, ecx
jb 0x4708b8
mov ebx, ecx
test ebx, ebx
jle 0x470921
lea esp, [esp]
sub eax, dword [esp + 0x24]
sar eax, 2
cmp esi, eax
jb 0x4708d0
call fcn.004ca395
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
push eax
call fcn.004ca555
mov edx, dword [esp + 0x44]
sub edx, dword [esp + 0x40]
add esp, 4
sar edx, 2
mov edi, eax
cmp esi, edx
jb 0x4708f6
call fcn.004ca395
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + esi*4]
push eax
call fcn.004ca555
mov ecx, edi
add esp, 4
sub ecx, eax
jne 0x470a11
mov eax, dword [esp + 0x28]
inc esi
cmp esi, ebx
jl 0x4708c0
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
sub eax, dword [esp + 0x24]
mov ecx, ebp
sub ecx, edi
sar ecx, 2
sar eax, 2
sub eax, ecx
mov ebx, eax
mov byte [esp + 0x50], 0
test edi, edi
je 0x470974
mov esi, edi
cmp edi, ebp
je 0x47096b
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x470960
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, ebp
jne 0x470942
mov edi, dword [esp + 0x3c]
push edi
call fcn.004c9610
add esp, 4
mov ecx, dword [esp + 0x30]
xor eax, eax
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.004c9610
mov dword [esp + 0x54], 0xffffffff
mov esi, dword [esp + 0x28]
xor ebp, ebp
add esp, 4
cmp esi, ebp
je 0x4709e2
mov eax, dword [esp + 0x28]
mov edi, eax
cmp esi, eax
je 0x4709d9
jmp 0x4709b0
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4709ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x4709b0
mov esi, dword [esp + 0x24]
push esi
call fcn.004c9610
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.004c9610
mov eax, ebx
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
sub edi, eax
mov eax, dword [esp + 0x3c]
xor ebx, ebx
mov esi, edi
cmp eax, ebx
je 0x470a35
mov edi, dword [esp + 0x40]
call fcn.00416970
mov edx, dword [esp + 0x3c]
push edx
call fcn.004c9610
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.004c9610
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, ebx
je 0x470a6c
mov edi, dword [esp + 0x28]
call fcn.00416970
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004c9610
add esp, 4
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004c9610
mov eax, esi
jmp 0x4709fa