Function at 0x4c4f70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x860ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x30], ebp
lea eax, [esp + 0x14]
push eax
push 0x4035a0
lea ecx, [esp + 0x20]
xor edi, edi
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], edi
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c4fec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
push eax
mov ecx, ebp
mov byte [esp + 0x40], 1
call fcn.004aa540
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5036
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c507c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c50c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5108
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
jle 0x4c5157
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
add esp, 4
test eax, eax
setne al
mov byte [ebp + 0x10], al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5157
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 1
jle 0x4c51a7
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
add esp, 4
test eax, eax
setne al
mov byte [ebp + 0x11], al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c51a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c51ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5233
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5279
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c52bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5305
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c534b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 0x2c], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5391
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 0x30], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c53d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 1
jle 0x4c5422
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 0x34], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5422
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebp + 0x38], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5468
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], edi
cmp dword [ebp + 0x30], edi
jle 0x4c55fa
lea edi, [ebp + 0x48]
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [edi - 0xc], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c54be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [edi - 8], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5504
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [edi - 4], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c554a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
mov byte [esp + 0x3c], 2
cmp eax, esi
je 0x4c55be
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4c55b2
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4c55b2
push eax
call fcn.004a9b50
mov dword [esp + 0x2c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4c55a7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x4c55be
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.004a8db0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c55e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
inc eax
add edi, 0x10
mov dword [esp + 0x18], eax
cmp eax, dword [ebp + 0x30]
jl 0x4c5478
xor edi, edi
mov dword [esp + 0x18], edi
cmp dword [ebp + 0x38], edi
jle 0x4c57e8
lea ebx, [ebp + 0xe8]
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebx - 0xc], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebx - 8], eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5699
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
push eax
call fcn.00803cb3
mov dword [ebx - 4], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c56df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x4035a0
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x50]
call fcn.004b65f0
mov eax, dword [eax]
mov edi, dword [ebx]
lea esi, [eax - 0x10]
sub edi, 0x10
mov byte [esp + 0x3c], 3
cmp esi, edi
je 0x4c57ae
cmp dword [edi + 0xc], 0
jl 0x4c57a2
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x4c57a2
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4c5743
cmp eax, dword [esi]
jne 0x4c5743
mov ebp, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4c577e
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x4c5826
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c5797
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebp, 0x10
mov dword [ebx], ebp
mov ebp, dword [esp + 0x30]
jmp 0x4c57ae
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.004a8db0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c57d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
inc eax
add ebx, 0x10
mov dword [esp + 0x18], eax
cmp eax, dword [ebp + 0x38]
jl 0x4c560d
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5810
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
call fcn.004a8580
int3