Function at 0x1015f6c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, esp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x7c], esp
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x84], 0x10160ea0
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x80]
mov ecx, dword fs:[0]
mov dword [esi + 0x80], ecx
mov dword fs:[0], eax
mov cl, 1
xor eax, eax
mov edx, dword [ebx]
lock cmpxchg byte [edx + 0x28], cl
lea edi, [edx + 0x28]
mov dword [esi + 4], edx
jne 0x1015f764
mov eax, dword [0x10284a20]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x1015f77e
xor eax, eax
movzx ecx, byte [edx + 0x29]
cmp byte [edx + 0x78], 0
je 0x1015f792
test al, al
jne 0x1015f74a
mov eax, dword [0x10284a20]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x1015fb8f
xor eax, eax
xchg byte [edi], al
cmp al, 2
jne 0x1015fb7b
push edi
call fcn.101cb780
add esp, 4
jmp 0x1015fb7b
push edi
call fcn.101cb6e0
mov edx, dword [esi + 4]
add esp, 4
mov eax, dword [0x10284a20]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x1015f728
call fcn.101cb650
mov edx, dword [esi + 4]
xor al, 1
movzx ecx, byte [edx + 0x29]
cmp byte [edx + 0x78], 0
jne 0x1015f734
mov dword [esi + 0x1c], eax
lea eax, [edx + 0x64]
mov byte [edx + 0x78], 1
mov dword [esi + 0xc], edi
mov dword [esi + 8], eax
mov eax, dword [edx + 0x64]
test eax, eax
je 0x1015f7c6
lock dec dword [eax]
jne 0x1015f7c6
mov dword [esi + 0x88], 7
push dword [esi + 8]
call fcn.10159ff0
mov ebx, dword [ebp + 8]
add esp, 4
mov eax, dword [esi + 8]
mov ecx, 0x90
mov dword [eax], 0
mov byte [esi], 1
mov dword [esi + 0x88], 0
add ecx, dword [ebx]
push ecx
call fcn.1019cae0
add esp, 4
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x70]
mov dword [esi + 0x18], eax
movsd xmm0, qword [ecx + 0x68]
movsd qword [esi + 0x10], xmm0
mov dword [ecx + 0x68], 0
call fcn.10190250
test byte [eax], 1
mov edi, eax
je 0x1015f81e
movdqu xmm0, xmmword [edi + 8]
mov eax, edi
add eax, 8
jmp 0x1015f84d
xorps xmm0, xmm0
lea eax, [esi + 0x20]
movaps xmmword [esi + 0x20], xmm0
push 0x10
push eax
call dword [sym.imp.bcryptprimitives.dll_ProcessPrng]
movdqa xmm0, xmmword [esi + 0x20]
mov eax, edi
mov dword [edi + 4], 0
mov dword [edi], 1
add eax, 8
movdqu xmmword [edi + 8], xmm0
movd ecx, xmm0
pshufd xmm1, xmm0, 0x55
movsd xmm3, qword [0x1020cea0]
mov edx, dword [esi + 0x1c]
add ecx, 1
mov dword [eax], ecx
movd ecx, xmm1
adc ecx, 0
mov dword [eax + 4], ecx
mov ecx, dword [esi + 4]
test dl, dl
movsd xmm1, qword [ecx + 0x58]
movsd qword [esi + 0x70], xmm1
movsd xmm1, qword [ecx + 0x50]
movsd qword [esi + 0x68], xmm1
movsd xmm2, qword [ecx + 0x48]
movsd xmm1, qword [ecx + 0x40]
movsd qword [esi + 0x60], xmm2
movsd xmm2, qword [0x1020cea8]
movsd qword [esi + 0x58], xmm1
movsd qword [ecx + 0x40], xmm3
movsd qword [ecx + 0x48], xmm2
movdqu xmmword [ecx + 0x50], xmm0
mov ecx, dword [esi + 0xc]
jne 0x1015f8ec
mov eax, dword [0x10284a20]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x1015f8ec
mov byte [esi + 1], 1
mov byte [esi + 2], 1
mov dword [esi + 0x88], 2
call fcn.101cb650
mov ecx, dword [esi + 0xc]
test al, al
jne 0x1015f8ec
mov eax, dword [esi + 4]
mov byte [eax + 0x29], 1
xor eax, eax
xchg byte [ecx], al
mov dword [esi + 0x88], 2
cmp al, 2
jne 0x1015f911
mov byte [esi + 1], 1
mov byte [esi + 2], 1
push dword [esi + 0xc]
call fcn.101cb780
add esp, 4
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov byte [esi + 1], 1
mov byte [esi + 2], 1
add edi, 4
push edx
push eax
push ecx
push edi
call fcn.10150560
add esp, 0x10
test al, al
je 0x1015faf5
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1015f9a2
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x20]
mov byte [esi + 1], 0
mov byte [esi + 2], 1
mov dword [esi + 0x28], edx
mov dword [esi + 0x24], ecx
push eax
call fcn.10150a30
add esp, 4
test eax, eax
je 0x1015f9a2
mov dword [esi + 4], eax
mov eax, dword [edx]
mov dword [esi + 8], edx
test eax, eax
je 0x1015f988
mov dword [esi + 0x88], 5
push dword [esi + 4]
call eax
add esp, 4
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov eax, dword [edx + 4]
test eax, eax
je 0x1015f9a2
push dword [edx + 8]
push eax
push ecx
call fcn.10013460
add esp, 0xc
mov ecx, dword [esi + 0x5c]
mov eax, dword [esi + 0x58]
xor edx, edx
test ecx, ecx
mov edi, ecx
movdqa xmm0, xmmword [eax]
mov ebx, eax
setne dl
shl edi, 4
sub ebx, edi
shl edx, 4
lea edi, [ecx + edi + 0x21]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edi
add ebx, 0xfffffff0
lea edi, [eax + ecx + 1]
mov ecx, dword [esi + 0x64]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], eax
add eax, 0x10
mov dword [esi + 0x30], eax
pmovmskb eax, xmm0
mov dword [esi + 0x34], edi
not eax
mov word [esi + 0x38], ax
mov dword [esi + 0x3c], ecx
jmp 0x1015fa03
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x1015fb5d
movzx edx, word [esi + 0x38]
mov eax, dword [esi + 0x2c]
test dx, dx
je 0x1015fa30
lea edi, [edx - 1]
dec ecx
and edi, edx
test eax, eax
mov word [esi + 0x38], di
mov dword [esi + 0x3c], ecx
jne 0x1015fa73
jmp 0x1015fb5d
mov edi, dword [esi + 0x30]
nop word cs:[eax + eax]
nop dword [eax]
movdqa xmm0, xmmword [edi]
add eax, 0xffffff00
add edi, 0x10
pmovmskb edx, xmm0
cmp edx, 0xffff
je 0x1015fa40
mov dword [esi + 0x30], edi
mov edi, 0xfffffffe
dec ecx
mov dword [esi + 0x2c], eax
sub edi, edx
not edx
mov ebx, edx
and ebx, edi
mov word [esi + 0x38], bx
mov dword [esi + 0x3c], ecx
tzcnt ecx, edx
shl ecx, 4
sub eax, ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x1015fb5d
mov edx, dword [eax - 8]
mov eax, dword [eax - 4]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x88], 3
mov dword [esi + 0x54], eax
lea eax, [esi + 0x4c]
mov dword [esi + 0x50], edx
push eax
call fcn.10150a30
add esp, 4
test eax, eax
je 0x1015fa00
mov dword [esi + 4], eax
mov eax, dword [edx]
mov dword [esi + 8], edx
test eax, eax
je 0x1015fad2
mov dword [esi + 0x88], 4
push dword [esi + 4]
call eax
add esp, 4
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov eax, dword [edx + 4]
test eax, eax
je 0x1015fa00
push dword [edx + 8]
push eax
push ecx
call fcn.10013460
add esp, 0xc
jmp 0x1015fa00
lea eax, [esi + 0x58]
mov byte [esi + 3], 1
mov dword [esi + 0x88], 1
push eax
call fcn.10161fd0
add esp, 4
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1015fb7b
push dword [esi + 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
lock dec dword [edi]
jne 0x1015fb3a
lea eax, [esi + 0x10]
mov dword [esi + 0x88], 6
push eax
call fcn.100069c0
add esp, 4
mov eax, dword [esi + 0x14]
lock dec dword [eax]
jne 0x1015fb7b
lea eax, [esi + 0x14]
mov byte [esi], 0
mov dword [esi + 0x88], 0
push eax
call fcn.10159eb0
add esp, 4
jmp 0x1015fb7b
lea eax, [esi + 0x20]
mov byte [esi + 1], 0
mov byte [esi + 2], 0
mov dword [esi + 0x88], 2
push eax
call fcn.10162140
add esp, 4
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.101cb650
mov ecx, dword [esi + 4]
test al, al
jne 0x1015f74a
mov byte [ecx + 0x29], 1
jmp 0x1015f74a