Function at 0x416540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x7c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x537e60
mov esi, ecx
lea eax, [ebp - 0x18]
mov ebx, edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0xc]
and ecx, dword [ebx]
cmp ecx, edx
jae 0x416a0d
mov eax, dword [eax + 8]
lea edx, [ecx + ecx*4]
mov dword [ebp - 0x28], ecx
lea edi, [eax + edx*8]
mov eax, dword [eax + edx*8]
test al, 8
jne 0x416766
mov ecx, eax
add ecx, 0x10
jb 0x416766
lock cmpxchg dword [edi], ecx
jne 0x416766
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
xor ecx, dword [ebx + 4]
xor eax, dword [ebx]
or eax, ecx
jne 0x4165ed
mov dword [ebp - 0x28], edi
add dword [ebx], 1
mov eax, dword [ebp - 0x28]
adc dword [ebx + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 3
mov dword [esi + 4], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x34], edx
mov eax, 0xfffffff0
lock xadd dword [edi], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x48], edi
and eax, 0xfffffff2
cmp eax, 0x12
jne 0x416622
mov ecx, edi
mov dword [ebp - 0x5c], edi
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x10], 0
call fcn.0053f7f0
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebx + 8]
mov dl, 1
xor eax, eax
mov dword [ebp - 0x4c], esi
lea ecx, [esi + 0x10]
lock cmpxchg byte [esi + 0x10], dl
mov dword [ebp - 0x40], ecx
je 0x41665d
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x54], eax
call fcn.0053e0c0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax + 0xc]
cmp ecx, edx
jae 0x416a17
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x34]
lea edx, [eax + ecx*8]
mov dword [ebp - 0x28], edx
mov eax, dword [eax + ecx*8]
test al, 8
jne 0x416691
mov ecx, eax
add ecx, 0x10
jb 0x416691
mov edx, dword [ebp - 0x28]
lock cmpxchg dword [edx], ecx
je 0x4166bc
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x1d], 1
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x3c], eax
call fcn.0053f470
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebx + 4]
mov edi, dword [ebx]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x48], edi
mov edx, ecx
xor edx, esi
mov esi, eax
xor esi, edi
or esi, edx
jne 0x4166f5
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov al, 1
lock cmpxchg byte [ecx], dl
jne 0x416778
mov esi, dword [ebp - 0x44]
jmp 0x4165c2
mov edx, dword [ebx + 8]
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x34]
mov edx, dword [edx + 0xc]
add eax, edx
adc ecx, 0
xor eax, esi
xor ecx, edi
or ecx, eax
jne 0x4167a4
mov eax, dword [ebp - 0x4c]
cmp byte [eax + 0x2c], 0
je 0x416882
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov dword [eax + 4], 0
mov dword [eax], 1
mov al, 1
lock cmpxchg byte [ecx], dl
je 0x416856
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x54], eax
call fcn.0053dda0
jmp 0x416856
mov ecx, edi
mov dword [ebp - 0x34], edx
call fcn.0053f470
mov edx, dword [ebp - 0x34]
jmp 0x4165b0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x54], eax
call fcn.0053dda0
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x44]
jmp 0x4165c2
mov ecx, esi
mov edi, esi
mov esi, dword [ebp - 0x4c]
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
sub ecx, edx
sbb eax, 0
mov dword [ebp - 0x6c], ecx
sub ecx, edi
mov edi, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
mov al, 1
sbb edi, dword [ebp - 0x34]
xor ecx, ecx
lock cmpxchg byte [esi + 0x10], cl
je 0x416802
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x3c], eax
call fcn.0053dda0
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x68]
xor eax, edx
xor ecx, esi
or ecx, eax
jne 0x416838
add dword [ebx], 1
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x28]
adc dword [ebx + 4], 0
mov dword [eax + 8], ecx
mov dword [eax], 3
mov dword [eax + 4], 0
jmp 0x4165dc
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x64]
mov dword [ebx], edx
mov dword [ebx + 4], esi
mov dword [eax], 2
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0x28]
mov eax, 0xfffffff0
lock xadd dword [ecx], eax
and eax, 0xfffffff2
cmp eax, 0x12
jne 0x4165dc
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0xffffffff
call fcn.0053f7f0
jmp 0x4165dc
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4168a2
mov edx, dword [ebx]
mov esi, dword [ebp + 0xc]
test edx, edx
je 0x4168a9
mov ecx, dword [esi]
mov eax, dword [ebx + 4]
mov esi, dword [esi + 4]
cmp eax, esi
je 0x4168b7
mov eax, esi
jmp 0x4168d9
xor ebx, ebx
jmp 0x41694e
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], 2
jmp 0x4168d9
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4168d9
mov esi, dword [edx + 4]
cmp esi, dword [ecx + 4]
jne 0x4168d9
mov esi, dword [edx + 8]
cmp esi, dword [ecx + 8]
jne 0x4168d9
mov edx, dword [edx + 0xc]
cmp edx, dword [ecx + 0xc]
je 0x416a46
mov edx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x1d], 1
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x3c], edx
push eax
call ecx
add esp, 4
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [ebp - 0x2c], ecx
movzx eax, byte [ebx + 0x10]
mov ecx, dword [ebp - 0x4c]
test al, al
jne 0x41694b
mov byte [ebx + 0x10], 1
mov dword [ebp - 0x70], ebx
mov eax, dword [ecx + 0x20]
cmp eax, ebx
je 0x416a61
test eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], 0
je 0x41693f
mov dword [eax + 8], ebx
mov dword [ecx + 0x20], ebx
cmp dword [ecx + 0x24], 0
jne 0x41694b
mov dword [ecx + 0x24], ebx
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov eax, 0xfffffff0
lock xadd dword [ecx], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], ebx
and eax, 0xfffffff2
cmp eax, 0x12
jne 0x416992
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x58], esi
mov byte [ebp - 0x1d], 1
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x3c], ecx
call fcn.0053f7f0
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
xor ecx, ecx
mov al, 1
lock cmpxchg byte [edx], cl
je 0x4169cc
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x58], esi
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x3c], eax
call fcn.0053dda0
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
test ebx, ebx
je 0x4169f8
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x58], esi
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x3c], ecx
push esi
call eax
add esp, 4
mov eax, dword [ebp - 0x44]
mov dword [eax + 4], 0
mov dword [eax], 0
jmp 0x4165dc
push 0x54849c
call fcn.0053bb10
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x1d], 1
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x3c], eax
push 0x5484ac
call fcn.0053bb10
add esp, 4
jmp 0x416aa2
mov dword [ebp - 0x2c], 0
movzx eax, byte [ebx + 0x10]
mov ecx, dword [ebp - 0x4c]
test al, al
jne 0x41694b
jmp 0x41691c
mov eax, dword [ebp - 0x2c]
add ecx, 0x20
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x58], esi
mov byte [ebp - 0x1d], 1
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x10], 2
lea edx, [ebp - 0x70]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x88]
push eax
call fcn.0053b240
add esp, 4
ud2