Function at 0x487710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ce1ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x34]
push edi
mov esi, ecx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], esi
call fcn.00406630
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x14]
call fcn.0041ce00
mov ecx, esi
call fcn.005769d0
test eax, eax
mov dword [esp + 0x18], eax
jne 0x487794
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401b70
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00405bb0
mov ebp, eax
mov esi, dword [ebp + 0x1c]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x4877cb
cmp eax, dword [esi]
jne 0x4877cb
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4877ff
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x487a2d
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x30], 2
mov edx, dword [esp + 0x38]
mov eax, dword [edx - 4]
mov esi, dword [edx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, esi
or eax, ecx
jge 0x487833
push esi
lea ecx, [esp + 0x3c]
call fcn.00402690
mov edx, dword [esp + 0x38]
push edx
call fcn.0057b8a3
add esp, 4
test esi, esi
jl 0x487a32
mov eax, dword [esp + 0x38]
cmp esi, dword [eax - 8]
jg 0x487a32
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x38]
mov word [eax + esi*2], 0
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
mov eax, dword [edx - 0xc]
mov ecx, dword [esi - 0xc]
cmp eax, ecx
jle 0x487947
mov eax, ecx
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041ce60
mov byte [esp + 0x30], 3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
mov eax, dword [eax]
push edx
or ebx, 1
push eax
mov dword [esp + 0x18], ebx
call fcn.0057a418
add esp, 8
test eax, eax
jne 0x4878d0
mov eax, dword [esp + 0x38]
mov eax, dword [eax - 0xc]
test eax, eax
jl 0x487a32
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 0xc]
jg 0x487a32
cmp word [ecx + eax*2], 0x5c
jne 0x4878d0
mov bl, 1
jmp 0x4878d2
xor bl, bl
mov dword [esp + 0x30], 2
test byte [esp + 0x10], 1
je 0x487909
and dword [esp + 0x10], 0xfffffffe
mov byte [esp + 0x30], 2
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 0x487909
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4879f9
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x38]
call fcn.00401b70
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401b70
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4879e7
cmp eax, ecx
jge 0x4879e7
mov eax, dword [edx - 0xc]
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x40]
call fcn.0041ce60
mov byte [esp + 0x30], 5
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
or ebx, 2
push eax
mov dword [esp + 0x18], ebx
call fcn.0057a418
add esp, 8
test eax, eax
jne 0x4879b8
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
jl 0x487a32
mov ecx, dword [esp + 0x38]
cmp eax, dword [ecx - 0xc]
jg 0x487a32
cmp word [ecx + eax*2], 0x5c
jne 0x4879b8
mov bl, 1
jmp 0x4879ba
xor bl, bl
mov dword [esp + 0x30], 2
test byte [esp + 0x10], 2
je 0x4879dd
mov eax, dword [esp + 0x10]
and eax, 0xfffffffd
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], eax
call fcn.00401b70
test bl, bl
jne 0x487911
jmp 0x4879f9
push esi
push edx
call fcn.0057a418
add esp, 8
test eax, eax
je 0x487911
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487a1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x487790
jmp 0x487768
call fcn.00401360
push 0x80070057
call fcn.00401180
int3