Function at 0x10155380
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], 0x10156b70
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 0x10155424
mov eax, dword [0x10283a20]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x1015543e
xor eax, eax
movzx ecx, byte [edx + 0x29]
cmp byte [edx + 0x78], 0
je 0x10155452
test al, al
jne 0x1015540a
mov eax, dword [0x10283a20]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x1015584f
xor eax, eax
xchg byte [edi], al
cmp al, 2
jne 0x1015583b
push edi
call fcn.101ca9e0
add esp, 4
jmp 0x1015583b
push edi
call fcn.101ca940
mov edx, dword [esi + 4]
add esp, 4
mov eax, dword [0x10283a20]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x101553e8
call fcn.101ca8b0
mov edx, dword [esi + 4]
xor al, 1
movzx ecx, byte [edx + 0x29]
cmp byte [edx + 0x78], 0
jne 0x101553f4
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 0x10155486
lock dec dword [eax]
jne 0x10155486
mov dword [esi + 0x88], 7
push dword [esi + 8]
call fcn.1015add0
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.1019a700
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.1018d970
test byte [eax], 1
mov edi, eax
je 0x101554de
movdqu xmm0, xmmword [edi + 8]
mov eax, edi
add eax, 8
jmp 0x1015550d
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 [0x1020aba0]
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 [0x1020aba8]
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 0x101555ac
mov eax, dword [0x10283a20]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x101555ac
mov byte [esi + 1], 1
mov byte [esi + 2], 1
mov dword [esi + 0x88], 2
call fcn.101ca8b0
mov ecx, dword [esi + 0xc]
test al, al
jne 0x101555ac
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 0x101555d1
mov byte [esi + 1], 1
mov byte [esi + 2], 1
push dword [esi + 0xc]
call fcn.101ca9e0
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.10150790
add esp, 0x10
test al, al
je 0x101557b5
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10155662
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.1014d840
add esp, 4
test eax, eax
je 0x10155662
mov dword [esi + 4], eax
mov eax, dword [edx]
mov dword [esi + 8], edx
test eax, eax
je 0x10155648
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 0x10155662
push dword [edx + 8]
push eax
push ecx
call fcn.10013870
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 0x101556c3
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x1015581d
movzx edx, word [esi + 0x38]
mov eax, dword [esi + 0x2c]
test dx, dx
je 0x101556f0
lea edi, [edx - 1]
dec ecx
and edi, edx
test eax, eax
mov word [esi + 0x38], di
mov dword [esi + 0x3c], ecx
jne 0x10155733
jmp 0x1015581d
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 0x10155700
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 0x1015581d
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.1014d840
add esp, 4
test eax, eax
je 0x101556c0
mov dword [esi + 4], eax
mov eax, dword [edx]
mov dword [esi + 8], edx
test eax, eax
je 0x10155792
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 0x101556c0
push dword [edx + 8]
push eax
push ecx
call fcn.10013870
add esp, 0xc
jmp 0x101556c0
lea eax, [esi + 0x58]
mov byte [esi + 3], 1
mov dword [esi + 0x88], 1
push eax
call fcn.1015f940
add esp, 4
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1015583b
push dword [esi + 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
lock dec dword [edi]
jne 0x101557fa
lea eax, [esi + 0x10]
mov dword [esi + 0x88], 6
push eax
call fcn.10007330
add esp, 4
mov eax, dword [esi + 0x14]
lock dec dword [eax]
jne 0x1015583b
lea eax, [esi + 0x14]
mov byte [esi], 0
mov dword [esi + 0x88], 0
push eax
call fcn.1015b180
add esp, 4
jmp 0x1015583b
lea eax, [esi + 0x20]
mov byte [esi + 1], 0
mov byte [esi + 2], 0
mov dword [esi + 0x88], 2
push eax
call fcn.1015fab0
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.101ca8b0
mov ecx, dword [esi + 4]
test al, al
jne 0x1015540a
mov byte [ecx + 0x29], 1
jmp 0x1015540a