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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x8c], esp
mov dword [esi + 0x98], 0xffffffff
mov dword [esi + 0x94], 0x10159fb0
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x90]
mov ecx, dword fs:[0]
mov dword [esi + 0x90], 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 + 0xc], edx
jne 0x1015851a
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x10158534
xor eax, eax
movzx ecx, byte [edx + 0x29]
cmp byte [edx + 0x78], 0
je 0x10158548
test al, al
jne 0x10158500
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
jne 0x10158984
xor eax, eax
xchg byte [edi], al
cmp al, 2
jne 0x10158970
push edi
call fcn.101cbad0
add esp, 4
jmp 0x10158970
push edi
call fcn.101cba30
mov edx, dword [esi + 0xc]
add esp, 4
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x101584de
call fcn.101cb9a0
mov edx, dword [esi + 0xc]
xor al, 1
movzx ecx, byte [edx + 0x29]
cmp byte [edx + 0x78], 0
jne 0x101584ea
mov dword [esi + 0x28], eax
lea eax, [edx + 0x64]
mov byte [edx + 0x78], 1
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], eax
mov eax, dword [edx + 0x64]
test eax, eax
je 0x1015857c
lock dec dword [eax]
jne 0x1015857c
mov dword [esi + 0x98], 7
push dword [esi + 0x10]
call fcn.1015e2b0
mov ebx, dword [ebp + 8]
add esp, 4
mov eax, dword [esi + 0x10]
mov ecx, 0x90
mov dword [eax], 0
mov byte [esi + 7], 1
mov dword [esi + 0x98], 0
add ecx, dword [ebx]
push ecx
call fcn.1019cc30
add esp, 4
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x70]
mov dword [esi + 0x20], eax
movq xmm0, qword [ecx + 0x68]
movq qword [esi + 0x18], xmm0
mov dword [ecx + 0x68], 0
call fcn.10190440
test byte [eax], 1
je 0x101585d3
movdqu xmm0, xmmword [eax + 8]
mov edi, eax
add edi, 8
jmp 0x1015863d
mov dword [esi + 0x10], eax
lea eax, [esi + 0x58]
mov byte [esi + 0xa], 1
mov byte [esi + 0xb], 1
mov dword [esi + 0x98], 1
push eax
call fcn.1019e1e0
add esp, 4
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x60]
mov edi, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
mov ebx, dword [esi + 0x10]
movd xmm0, edi
movd xmm1, edx
movd xmm2, ecx
movd xmm3, eax
mov dword [ebx + 4], 0
mov dword [ebx], 1
mov dword [ebx + 8], edi
mov edi, ebx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
punpckldq xmm0, xmm1
punpckldq xmm2, xmm3
add edi, 8
punpcklqdq xmm0, xmm2
movd ecx, xmm0
pshufd xmm1, xmm0, 0x55
mov edx, dword [esi + 0x14]
movsd xmm3, qword [0x1020ba50]
add ecx, 1
movd eax, xmm1
adc eax, 0
mov dword [edi], ecx
cmp byte [esi + 0x28], 0
mov dword [edi + 4], eax
mov eax, dword [esi + 0xc]
movsd xmm1, qword [eax + 0x58]
movsd qword [esi + 0x80], xmm1
movsd xmm1, qword [eax + 0x50]
movsd qword [esi + 0x78], xmm1
movsd xmm2, qword [eax + 0x48]
movsd xmm1, qword [eax + 0x40]
movsd qword [esi + 0x70], xmm2
movsd xmm2, qword [0x1020ba58]
movsd qword [esi + 0x68], xmm1
movsd qword [eax + 0x40], xmm3
movsd qword [eax + 0x48], xmm2
movdqu xmmword [eax + 0x50], xmm0
jne 0x101586de
mov eax, dword [0x10284a30]
mov eax, dword [eax]
test eax, 0x7fffffff
je 0x101586de
mov byte [esi + 8], 1
mov byte [esi + 9], 1
mov dword [esi + 0x98], 2
call fcn.101cb9a0
mov edx, dword [esi + 0x14]
test al, al
jne 0x101586de
mov eax, dword [esi + 0xc]
mov byte [eax + 0x29], 1
xor eax, eax
xchg byte [edx], al
mov dword [esi + 0x98], 2
cmp al, 2
jne 0x10158703
mov byte [esi + 8], 1
mov byte [esi + 9], 1
push dword [esi + 0x14]
call fcn.101cbad0
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 + 8], 1
mov byte [esi + 9], 1
add edi, 4
push edx
push eax
push ecx
push edi
call fcn.101502e0
add esp, 0x10
test al, al
je 0x101588e5
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10158794
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x2c]
mov byte [esi + 8], 0
mov byte [esi + 9], 1
mov dword [esi + 0x34], edx
mov dword [esi + 0x30], ecx
push eax
call fcn.10150780
add esp, 4
test eax, eax
je 0x10158794
mov dword [esi + 0xc], eax
mov eax, dword [edx]
mov dword [esi + 0x10], edx
test eax, eax
je 0x1015877a
mov dword [esi + 0x98], 5
push dword [esi + 0xc]
call eax
add esp, 4
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov eax, dword [edx + 4]
test eax, eax
je 0x10158794
push dword [edx + 8]
push eax
push ecx
call fcn.10013780
add esp, 0xc
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x68]
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 + 0x2c], edx
mov dword [esi + 0x30], edi
add ebx, 0xfffffff0
lea edi, [eax + ecx + 1]
mov ecx, dword [esi + 0x74]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], eax
add eax, 0x10
mov dword [esi + 0x3c], eax
pmovmskb eax, xmm0
mov dword [esi + 0x40], edi
not eax
mov word [esi + 0x44], ax
mov dword [esi + 0x48], ecx
jmp 0x101587f3
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x10158952
movzx edx, word [esi + 0x44]
mov eax, dword [esi + 0x38]
test dx, dx
je 0x10158820
lea edi, [edx - 1]
dec ecx
and edi, edx
test eax, eax
mov word [esi + 0x44], di
mov dword [esi + 0x48], ecx
jne 0x10158863
jmp 0x10158952
mov edi, dword [esi + 0x3c]
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 0x10158830
mov dword [esi + 0x3c], edi
mov edi, 0xfffffffe
dec ecx
mov dword [esi + 0x38], eax
sub edi, edx
not edx
mov ebx, edx
and ebx, edi
mov word [esi + 0x44], bx
mov dword [esi + 0x48], ecx
tzcnt ecx, edx
shl ecx, 4
sub eax, ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x10158952
mov edx, dword [eax - 8]
mov eax, dword [eax - 4]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x98], 3
mov dword [esi + 0x54], eax
lea eax, [esi + 0x4c]
mov dword [esi + 0x50], edx
push eax
call fcn.10150780
add esp, 4
test eax, eax
je 0x101587f0
mov dword [esi + 0xc], eax
mov eax, dword [edx]
mov dword [esi + 0x10], edx
test eax, eax
je 0x101588c2
mov dword [esi + 0x98], 4
push dword [esi + 0xc]
call eax
add esp, 4
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov eax, dword [edx + 4]
test eax, eax
je 0x101587f0
push dword [edx + 8]
push eax
push ecx
call fcn.10013780
add esp, 0xc
jmp 0x101587f0
lea eax, [esi + 0x68]
mov byte [esi + 0xa], 1
mov byte [esi + 0xb], 0
mov dword [esi + 0x98], 1
push eax
call fcn.101624b0
add esp, 4
mov edi, dword [esi + 0x18]
test edi, edi
je 0x10158970
push dword [esi + 0x20]
call dword [sym.imp.kernel32.dll_CloseHandle]
lock dec dword [edi]
jne 0x1015892e
lea eax, [esi + 0x18]
mov dword [esi + 0x98], 6
push eax
call fcn.10006c40
add esp, 4
mov eax, dword [esi + 0x1c]
lock dec dword [eax]
jne 0x10158970
lea eax, [esi + 0x1c]
mov byte [esi + 7], 0
mov dword [esi + 0x98], 0
push eax
call fcn.1015e7c0
add esp, 4
jmp 0x10158970
lea eax, [esi + 0x2c]
mov byte [esi + 8], 0
mov byte [esi + 9], 0
mov dword [esi + 0x98], 2
push eax
call fcn.10162620
add esp, 4
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.101cb9a0
mov ecx, dword [esi + 0xc]
test al, al
jne 0x10158500
mov byte [ecx + 0x29], 1
jmp 0x10158500