Function at 0x10090560
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], 0x10098d60
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov edx, dword [esi]
test edx, edx
je 0x10090670
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov ecx, dword [eax + 0x18]
movsd xmm2, qword [eax + 0x10]
movsd qword [ebp - 0x3c], xmm1
mov dword [ebp - 0x2c], ecx
movsd qword [ebp - 0x34], xmm2
movsd qword [ebp - 0x44], xmm0
movzx ecx, byte [ebp - 0x3c]
cmp cl, 2
mov byte [ebp - 0x28], cl
jne 0x1009069a
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x64]
push ecx
push eax
call fcn.100faac0
add esp, 8
mov ebx, dword [ebp - 0x48]
lock inc dword [ebx]
jle 0x10090c12
mov esi, dword [ebp - 0x68]
lock inc dword [esi + 0xe4]
lock inc dword [esi]
jle 0x10090c12
movsd xmm1, qword [ebp - 0x5f]
movzx eax, byte [ebp - 0x57]
lea edx, [ebp - 0x38]
movsd xmm0, qword [ebp - 0x64]
movzx ecx, word [ebp - 0x56]
movsd xmm2, qword [edx]
movsd qword [ebp - 0xbc], xmm1
movsd xmm1, qword [edx + 8]
cmp al, 2
movsd qword [ebp - 0xc1], xmm0
movsd qword [ebp - 0x79], xmm2
movsd qword [ebp - 0x71], xmm1
jne 0x10090760
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x24]
jmp 0x100906dd
mov ecx, dword [eax + 0x18]
movsd xmm0, qword [eax + 0x10]
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
xor edx, edx
mov dword [ebp - 0x2c], ecx
movsd qword [ebp - 0x34], xmm0
movsd qword [ebp - 0x3c], xmm1
movsd qword [ebp - 0x44], xmm2
jmp 0x10090a74
movzx ecx, byte [eax + 0xb]
movsd xmm0, qword [eax + 0xc]
movsd xmm1, qword [eax + 0x14]
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov byte [ebp - 0x62], cl
movzx ecx, word [eax + 9]
mov word [ebp - 0x64], cx
movsd qword [ebp - 0x59], xmm1
movsd qword [ebp - 0x61], xmm0
mov eax, dword [ebp - 0x55]
movsd xmm0, qword [ebp - 0x64]
movsd xmm1, qword [ebp - 0x5c]
mov dword [ebp - 0x6d], eax
movsd qword [ebp - 0x7c], xmm0
movsd qword [ebp - 0x74], xmm1
movzx eax, byte [ebp - 0x28]
movsd xmm0, qword [ebp - 0x7c]
movsd xmm1, qword [ebp - 0x74]
mov ecx, dword [ebp - 0x6d]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x5c], al
movsd qword [ebp - 0x53], xmm1
movsd qword [ebp - 0x5b], xmm0
mov dword [ebp - 0x4c], ecx
jmp 0x10090712
pause
mov eax, dword [edx + 4]
nop word cs:[eax + eax]
nop
cmp eax, 0xffffffff
je 0x10090710
test eax, eax
js 0x10090bd8
lea ecx, [eax + 1]
lock cmpxchg dword [edx + 4], ecx
jne 0x10090720
mov eax, dword [ebp - 0x4c]
movsd xmm0, qword [ebp - 0x54]
movsd xmm2, qword [ebp - 0x64]
movsd xmm1, qword [ebp - 0x5c]
mov dword [ebp - 0x2c], eax
movsd qword [ebp - 0x34], xmm0
movsd qword [ebp - 0x3c], xmm1
movsd qword [ebp - 0x44], xmm2
jmp 0x10090a74
movsd xmm0, qword [ebp - 0x74]
mov edx, dword [ebp - 0x6d]
movsd xmm1, qword [ebp - 0x7c]
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], esi
mov byte [ebp - 0x94], 2
movsd xmm2, qword [ebp - 0xc4]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x5c], 2
movsd qword [ebp - 0x8b], xmm0
mov dword [ebp - 0x84], edx
movsd qword [ebp - 0x93], xmm1
movsd xmm1, qword [ebp - 0xbc]
mov edx, dword [ebp - 0x24]
movsd qword [ebp - 0x5b], xmm2
movsd qword [ebp - 0x53], xmm1
mov byte [ebp - 0x4b], al
lea eax, [edx + 8]
mov word [ebp - 0x4a], cx
mov cl, 1
mov dword [ebp - 0x28], eax
xor eax, eax
lock cmpxchg byte [edx + 8], cl
je 0x100907f2
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x10], 6
push dword [ebp - 0x28]
call fcn.101cba30
mov edx, dword [ebp - 0x24]
add esp, 4
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x10090849
mov byte [ebp - 0x1e], 1
mov byte [ebp - 0x1f], 1
mov dword [ebp - 0x10], 6
call fcn.101cb9a0
mov edx, dword [ebp - 0x24]
mov ecx, eax
xor cl, 1
movzx eax, byte [edx + 9]
mov edi, dword [ebp + 0x10]
test al, al
jne 0x10090856
movzx edx, byte [edi]
mov dword [ebp - 0x48], ecx
test edx, edx
je 0x10090888
cmp edx, 1
jne 0x1009088c
movzx eax, byte [edi + 1]
mov dword [ebp - 0x10], 9
shl eax, 8
jmp 0x100908ee
xor ecx, ecx
movzx eax, byte [edx + 9]
mov edi, dword [ebp + 0x10]
test al, al
je 0x10090827
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0xb
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], cl
lea eax, [ebp - 0x44]
push 0x101db724
push 0x101db45c
push eax
push 0x2b
push 0x101db430
call fcn.101ccb80
add esp, 0x14
jmp 0x10090c12
mov eax, edx
jmp 0x100908ee
mov dword [ebp - 0x80], edx
mov esi, dword [edi + 4]
movzx eax, byte [0x10284b49]
push 4
push 0x10
call fcn.10013770
add esp, 8
test eax, eax
mov dword [ebp - 0x68], eax
je 0x10090bfb
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
add esi, 0xc
lea edi, [ebp - 0x44]
mov eax, dword [eax]
mov dword [ebp - 0x10], 0xa
push edx
push ecx
push esi
push edi
call eax
add esp, 0x10
movsd xmm0, qword [ebp - 0x44]
mov ecx, dword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x3c]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x80]
xor eax, eax
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm0
or eax, edx
mov edx, dword [edi + 0xc]
lea esi, [edi + 0x14]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], ecx
mov ecx, dword [edi + 8]
mov edi, dword [edi + 0x10]
lea eax, [ebp - 0xac]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], 9
push edi
push edx
push esi
push eax
call ecx
add esp, 0x10
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x8c]
movsd xmm1, qword [ebp - 0x94]
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 7
lea edx, [ebp - 0xb4]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0x84]
movsd qword [ebp - 0x34], xmm0
movsd xmm0, qword [ebp - 0x9c]
movsd qword [ebp - 0x3c], xmm1
mov dword [ebp - 0x2c], eax
movsd qword [ebp - 0x44], xmm0
lea eax, [ebp - 0x44]
push dword [ebp + 0xc]
push eax
call fcn.10090e20
add esp, 8
mov eax, dword [ebp - 0x24]
mov byte [ebp - 0x1d], 0
add eax, 0x20
push dword [ebp + 0x10]
push eax
call fcn.100b45b0
add esp, 8
mov eax, dword [ebp - 0x24]
mov byte [ebp - 0x1d], 0
add eax, 0x60
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100b4070
add esp, 0xc
xor eax, eax
cmp eax, dword [ebp - 0x44]
jo 0x100909d8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x10], 8
push eax
call fcn.100e2cf0
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x100909d8
shl eax, 2
push 4
push eax
push dword [ebp - 0x40]
call fcn.10013780
add esp, 0xc
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x10090bb9
mov eax, dword [ebp - 0x4c]
movsd xmm0, qword [ebp - 0x54]
movsd xmm2, qword [ebp - 0x64]
movsd xmm1, qword [ebp - 0x5c]
cmp byte [ebp - 0x48], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 0x2c], eax
movsd qword [ebp - 0x34], xmm0
movsd qword [ebp - 0x3c], xmm1
movsd qword [ebp - 0x44], xmm2
jne 0x10090a48
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x10090a48
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 6
call fcn.101cb9a0
test al, al
jne 0x10090a48
mov eax, dword [ebp - 0x24]
mov byte [eax + 9], 1
mov ecx, dword [ebp - 0x28]
xor eax, eax
xor edx, edx
xchg byte [ecx], al
cmp al, 2
jne 0x10090a71
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 6
push dword [ebp - 0x28]
call fcn.101cbad0
xor edx, edx
add esp, 4
mov edi, dword [ebp + 0x10]
movzx ecx, byte [edi]
mov eax, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x34]
movsd xmm2, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
mov dword [ebp - 0x24], edx
test ecx, ecx
mov dword [ebp - 0x4c], eax
movsd qword [ebp - 0x54], xmm0
movsd qword [ebp - 0x5c], xmm1
movsd qword [ebp - 0x64], xmm2
je 0x10090b0b
cmp ecx, 2
jne 0x10090b0f
mov dword [ebp - 0x48], ecx
mov esi, dword [edi + 4]
movzx eax, byte [0x10284b49]
push 4
push 0x10
call fcn.10013770
add esp, 8
test eax, eax
mov dword [ebp - 0x28], eax
je 0x10090be6
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
add esi, 0xc
lea edi, [ebp - 0x44]
mov eax, dword [eax]
mov dword [ebp - 0x10], 4
push edx
push ecx
push esi
push edi
call eax
add esp, 0x10
movsd xmm0, qword [ebp - 0x44]
mov edx, dword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x3c]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x48]
xor eax, eax
movsd qword [edx + 8], xmm1
movsd qword [edx], xmm0
jmp 0x10090b1d
mov eax, ecx
jmp 0x10090b1d
movzx eax, byte [edi + 1]
mov dword [ebp - 0x10], 3
shl eax, 8
or eax, ecx
mov ecx, dword [edi + 8]
lea esi, [edi + 0x14]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov edx, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
lea eax, [ebp - 0x3c]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], 3
push edi
push edx
push esi
push eax
call ecx
add esp, 0x10
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x5c]
mov eax, dword [ebp - 0x4c]
movsd xmm0, qword [ebp - 0x54]
movsd xmm3, qword [ebp - 0x64]
mov ecx, dword [ebp + 0x10]
movsd xmm2, qword [ebp - 0x44]
mov dword [ebp - 0x10], 0xffffffff
movsd qword [esi + 0x20], xmm1
movsd xmm1, qword [ebp - 0x3c]
mov dword [esi + 0x30], eax
movsd qword [esi + 0x28], xmm0
movsd qword [esi + 0x18], xmm3
mov byte [esi + 0x38], 0
mov eax, dword [ebp - 0x24]
movsd qword [esi], xmm2
movsd qword [esi + 8], xmm1
movsd xmm1, qword [ebp - 0x34]
movsd qword [esi + 0x10], xmm1
mov dword [esi + 0x34], eax
call fcn.1008dc90
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
lock dec dword [eax + 4]
jne 0x100909ea
push 8
push 0x90
push eax
call fcn.10013780
add esp, 0xc
jmp 0x100909ea
mov dword [ebp - 0x10], 5
call fcn.101c6880
jmp 0x10090c12
mov dword [ebp - 0x10], 2
push 0x10
push 4
call fcn.101cc679
add esp, 8
jmp 0x10090c12
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 7
push 0x10
push 4
call fcn.101cc679
add esp, 8
ud2