Function at 0x4adb20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4b8670
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov edi, dword [edi]
test edi, edi
je 0x4adc41
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov ecx, dword [eax + 0x18]
movsd xmm2, qword [eax + 0x10]
movsd qword [ebp - 0x44], xmm1
mov dword [ebp - 0x34], ecx
movsd qword [ebp - 0x3c], xmm2
movsd qword [ebp - 0x4c], xmm0
movzx ebx, byte [ebp - 0x44]
cmp bl, 2
jne 0x4adc6b
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x10], 0xb
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x68]
push ecx
push eax
call fcn.004e7190
add esp, 8
mov eax, dword [ebp - 0x28]
lock inc dword [eax]
jle 0x4ae184
mov eax, dword [ebp - 0x30]
lock inc dword [eax + 0xe8]
lock inc dword [eax]
mov edi, dword [ebp - 0x2c]
movzx ebx, byte [ebp - 0x24]
jle 0x4ae184
movsd xmm1, qword [ebp - 0x63]
movzx edx, byte [ebp - 0x5b]
lea eax, [ebp - 0x40]
movsd xmm0, qword [ebp - 0x68]
movzx esi, word [ebp - 0x5a]
mov ecx, dword [ebp - 0x94]
movsd xmm2, qword [eax]
movsd qword [ebp - 0xbc], xmm1
movsd xmm1, qword [eax + 8]
mov eax, dword [ebp - 0x98]
cmp dl, 2
movsd qword [ebp - 0xc1], xmm0
movsd qword [ebp - 0x79], xmm2
movsd qword [ebp - 0x71], xmm1
jne 0x4add30
mov esi, dword [ebp + 0x10]
jmp 0x4adcae
mov ecx, dword [eax + 0x18]
movsd xmm0, qword [eax + 0x10]
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
xor edi, edi
mov dword [ebp - 0x34], ecx
movsd qword [ebp - 0x3c], xmm0
movsd qword [ebp - 0x44], xmm1
movsd qword [ebp - 0x4c], xmm2
jmp 0x4adfd0
movzx edx, word [ebp - 0x43]
movsd xmm0, qword [ebp - 0x40]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov word [ebp - 0x68], dx
movzx edx, byte [ebp - 0x41]
mov byte [ebp - 0x66], dl
movsd qword [ebp - 0x65], xmm0
movsd xmm0, qword [ebp - 0x38]
movsd qword [ebp - 0x5d], xmm0
movsd xmm0, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x60]
mov edx, dword [ebp - 0x59]
movsd qword [ebp - 0x74], xmm1
movsd qword [ebp - 0x7c], xmm0
mov dword [ebp - 0x6d], edx
mov edx, dword [ebp - 0x6d]
movsd xmm0, qword [ebp - 0x7c]
movsd xmm1, qword [ebp - 0x74]
mov dword [ebp - 0x50], edx
movsd qword [ebp - 0x57], xmm1
movsd qword [ebp - 0x5f], xmm0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
mov byte [ebp - 0x60], bl
jmp 0x4adce2
pause
mov eax, dword [edi + 4]
nop word cs:[eax + eax]
nop
cmp eax, 0xffffffff
je 0x4adce0
test eax, eax
js 0x4ae176
lea ecx, [eax + 1]
lock cmpxchg dword [edi + 4], ecx
jne 0x4adcf0
mov eax, dword [ebp - 0x50]
movsd xmm0, qword [ebp - 0x58]
movsd xmm2, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x60]
mov dword [ebp - 0x34], eax
movsd qword [ebp - 0x3c], xmm0
movsd qword [ebp - 0x44], xmm1
movsd qword [ebp - 0x4c], xmm2
jmp 0x4adfd0
mov dword [ebp - 0x98], eax
movsd xmm0, qword [ebp - 0x74]
mov eax, dword [ebp - 0x6d]
mov dword [ebp - 0x94], ecx
mov byte [ebp - 0x90], 2
movsd xmm1, qword [ebp - 0xbc]
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x10], 5
movsd qword [ebp - 0x87], xmm0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x28]
movsd xmm0, qword [ebp - 0xc4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 2
movsd qword [ebp - 0x57], xmm1
movsd xmm1, qword [ebp - 0x7c]
lea eax, [edi + 8]
movsd qword [ebp - 0x5f], xmm0
mov byte [ebp - 0x4f], dl
mov word [ebp - 0x4e], si
mov dword [ebp - 0x28], eax
movsd qword [ebp - 0x8f], xmm1
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x69b824]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x4addd2
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 1
call fcn.0059fdf0
mov ecx, eax
xor cl, 1
jmp 0x4addd4
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp + 0x10]
movzx eax, byte [eax + 0xc]
test al, al
jne 0x4ae19d
movzx eax, byte [esi]
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x4addfd
cmp eax, 1
jne 0x4ade01
movzx eax, byte [esi + 1]
mov cl, 1
jmp 0x4ade5d
xor ecx, ecx
jmp 0x4ade5d
mov esi, dword [esi + 4]
movzx eax, byte [0x69b8b9]
push 4
push 0x10
call fcn.00407070
add esp, 8
test eax, eax
mov dword [ebp - 0x24], eax
je 0x4ae1cc
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
add esi, 0xc
lea edi, [ebp - 0x4c]
mov eax, dword [eax]
mov dword [ebp - 0x10], 9
push edx
push ecx
push esi
push edi
call eax
add esp, 0x10
movsd xmm0, qword [ebp - 0x4c]
mov edx, dword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x44]
mov esi, dword [ebp + 0x10]
mov cl, 2
movsd qword [edx + 8], xmm1
movsd qword [edx], xmm0
mov byte [ebp - 0xb4], cl
mov byte [ebp - 0xb3], al
mov eax, dword [esi + 8]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0x24], edx
mov ecx, dword [esi + 0xc]
lea edx, [esi + 0x14]
mov esi, dword [esi + 0x10]
lea edi, [ebp - 0x4c]
mov eax, dword [eax]
mov dword [ebp - 0x10], 8
push esi
push ecx
push edx
push edi
call eax
add esp, 0x10
movsd xmm1, qword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x4c]
movsd xmm2, qword [ebp - 0x98]
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 6
lea edx, [ebp - 0xb4]
movsd qword [ebp - 0xa4], xmm1
movsd xmm1, qword [ebp - 0x88]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0x80]
movsd qword [ebp - 0xac], xmm0
movsd qword [ebp - 0x4c], xmm2
movsd qword [ebp - 0x3c], xmm1
movsd xmm1, qword [ebp - 0x90]
mov dword [ebp - 0x34], eax
movsd qword [ebp - 0x44], xmm1
push dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push eax
call fcn.004ae3f0
add esp, 8
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x1d], 0
add eax, 0x20
push dword [ebp + 0x10]
push eax
call fcn.00426a70
add esp, 8
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x1d], 0
add eax, 0x60
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00426f90
add esp, 0xc
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4adf6c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x10], 7
push eax
call fcn.00418430
add esp, 4
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x24]
test eax, eax
je 0x4adf6c
shl eax, 2
push 4
push eax
push ecx
call fcn.00407080
add esp, 0xc
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x4ae157
mov eax, dword [ebp - 0x50]
movsd xmm0, qword [ebp - 0x58]
movsd xmm2, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x60]
cmp byte [ebp - 0x30], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 0x34], eax
movsd qword [ebp - 0x3c], xmm0
movsd qword [ebp - 0x44], xmm1
movsd qword [ebp - 0x4c], xmm2
je 0x4ae11d
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 5
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov esi, dword [ebp + 0x10]
xor edi, edi
mov eax, dword [ebp - 0x34]
movsd xmm0, qword [ebp - 0x3c]
movsd xmm2, qword [ebp - 0x4c]
movsd xmm1, qword [ebp - 0x44]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x50], eax
movzx eax, byte [esi]
movsd qword [ebp - 0x58], xmm0
movsd qword [ebp - 0x60], xmm1
movsd qword [ebp - 0x68], xmm2
test eax, eax
je 0x4ae018
cmp eax, 1
jne 0x4ae021
movzx eax, byte [esi + 1]
mov dword [ebp - 0x10], 2
mov byte [ebp - 0x24], al
mov al, 1
mov dword [ebp - 0x28], eax
jmp 0x4ae080
mov dword [ebp - 0x28], 0
jmp 0x4ae080
mov esi, dword [esi + 4]
movzx eax, byte [0x69b8b9]
push 4
push 0x10
call fcn.00407070
add esp, 8
test eax, eax
mov dword [ebp - 0x30], eax
je 0x4ae188
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
add esi, 0xc
lea edi, [ebp - 0x4c]
mov eax, dword [eax]
mov dword [ebp - 0x10], 3
push edx
push ecx
push esi
push edi
call eax
add esp, 0x10
movsd xmm0, qword [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
movsd xmm1, qword [ebp - 0x44]
mov esi, dword [ebp + 0x10]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov al, 2
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
lea edx, [esi + 0x14]
mov esi, dword [esi + 0x10]
lea edi, [ebp - 0x4c]
mov eax, dword [eax]
mov dword [ebp - 0x10], 2
push esi
push ecx
push edx
push edi
call eax
add esp, 0x10
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x44]
movsd xmm0, qword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
movsd xmm2, qword [ebp - 0x68]
movzx ebx, byte [ebp - 0x24]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0xffffffff
movsd qword [esi + 0x10], xmm1
movsd xmm1, qword [ebp - 0x58]
movsd qword [esi + 8], xmm0
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x28]
movsd qword [esi + 0x18], xmm2
movsd qword [esi + 0x28], xmm1
movsd xmm1, qword [ebp - 0x60]
movsd qword [esi + 0x20], xmm1
mov byte [esi + 0x38], 0
mov byte [esi], al
mov byte [esi + 1], bl
mov dword [esi + 4], edx
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp + 0x10]
call fcn.004a68a0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x69b824]
mov eax, dword [eax]
mov dword [ebp - 0x10], 5
test eax, 0x7fffffff
je 0x4adfb3
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1f], 0
call fcn.0059fdf0
test al, al
jne 0x4adfb3
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0xc], 1
jmp 0x4adfb3
lock dec dword [eax + 4]
jne 0x4adf7e
push 8
push 0x90
push eax
call fcn.00407080
add esp, 0xc
jmp 0x4adf7e
mov dword [ebp - 0x10], 4
call fcn.0059c190
jmp 0x4ae1e3
ud2
mov dword [ebp - 0x10], 1
push 0x10
push 4
call fcn.005a08c0
add esp, 8
jmp 0x4ae1e3
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0xa
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], cl
lea eax, [ebp - 0x4c]
push 0x60dc34
push 0x60d5dc
push eax
push 0x2b
push 0x60d5b0
call fcn.005a0ed0
add esp, 0x14
jmp 0x4ae1e3
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 6
push 0x10
push 4
call fcn.005a08c0
add esp, 8
ud2