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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc18
mov eax, dword [0x10444724]
xor eax, esp
mov dword [esp + 0xc14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xe8], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x50], eax
push edi
cmp esi, 1
jl 0x10156dfb
mov edi, dword [ebp + 0x1c]
cmp edi, 1
jl 0x10156dfb
cmp dword [ebp + 0xc], 0
je 0x10156dfb
lea ecx, [edi + 1]
lea eax, [esi + 1]
mov dword [esp + 0xec], ecx
imul ecx
mov dword [esp + 0x48], eax
test edx, edx
jg 0x10156dfb
jl 0x10155fae
cmp eax, 0x7fffffff
ja 0x10156dfb
cmp dword [esp + 0x54], 0
jne 0x10155fc2
call fcn.10042d20
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x48]
cmp eax, 0x2710
jg 0x10155fdd
cmp esi, 0xc8
jg 0x10155fdd
cmp edi, 0xc8
jle 0x10156098
lea eax, [esi + edi]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
sub esp, 8
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm0, xmm1
movss dword [esp + 0x20], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
mulss xmm0, dword [0x1039a6f8]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x68], xmm0
fld qword [esp + 0x68]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x68]
movsd xmm0, qword [esp + 0x68]
mov edi, 1
cvtpd2ps xmm0, xmm0
mov esi, edi
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x20]
mulss xmm0, dword [0x1039a6f8]
cmp eax, edi
cmovg esi, eax
mov dword [ebp + 0x18], esi
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x68], xmm0
fld qword [esp + 0x68]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x68]
movsd xmm0, qword [esp + 0x68]
lea ecx, [esi + 1]
cvtpd2ps xmm0, xmm0
add esp, 8
cvttss2si eax, xmm0
cmp eax, edi
cmovg edi, eax
mov dword [ebp + 0x1c], edi
lea eax, [edi + 1]
imul ecx, eax
mov dword [esp + 0xec], eax
mov dword [esp + 0x48], ecx
mov eax, esi
imul eax, edi
push 0x800
push 0x800
lea eax, [eax + eax*2]
add eax, eax
mov dword [esp + 0x64], eax
xor eax, eax
cmp dword [ebp + 0x14], eax
setne al
mov ecx, eax
or ecx, 2
cmp dword [esp + 0x24], 0
cmove ecx, eax
lea eax, [esp + 0x400]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0xc00]
push eax
call fcn.1007d6b0
cmp dword [esp + 0x1c], 0
je 0x1015610c
push 4
lea ecx, [esp + 0xbfc]
call fcn.10155c30
push dword [esp + 0x48]
lea ecx, [esp + 0xbfc]
mov dword [esp + 0x48], eax
call fcn.10155c30
mov dword [esp + 0x58], eax
jmp 0x1015611c
mov dword [esp + 0x44], 0
mov dword [esp + 0x58], 0
push dword [esp + 0x18]
lea ecx, [esp + 0xb0]
push dword [esp + 0x60]
push dword [esp + 0x50]
push 0
call fcn.100b8f30
lea ecx, [esp + 0xac]
call fcn.100b9fa0
lea ecx, [esp + 0xac]
mov dword [esp + 0x5c], eax
call fcn.100b9fe0
lea ecx, [esp + 0xac]
mov dword [esp + 0x6c], eax
call fcn.100b9dd0
cmp dword [esp + 0x44], 0
mov dword [esp + 0x70], eax
je 0x10156252
lea eax, [esp + 0x18]
push eax
call fcn.10042790
mov ecx, dword [esp + 0x58]
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 6
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 4
mov dword [esp + 0x34], 1
test ecx, ecx
je 0x101561b7
mov eax, 1
lock xadd dword [ecx], eax
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
mov dword [esp + 0xfc], ecx
push eax
push 0
push dword [esp + 0x54]
lea eax, [esp + 0x108]
mov dword [esp + 0x10c], 0xe
push eax
mov dword [esp + 0x114], 2
mov dword [esp + 0x118], 4
mov dword [esp + 0x11c], 1
call fcn.100d8010
mov ecx, dword [esp + 0x10c]
add esp, 0x18
test ecx, ecx
je 0x10156230
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x10156230
push 0x90
push ecx
call fcn.1037dfe9
add esp, 8
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10156252
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x10156252
push 0x90
push ecx
call fcn.1037dfe9
add esp, 8
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x360]
movss xmm0, dword [eax + 0x48]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [eax + 0x4c]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 0x40]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [eax + 0x44]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [eax + 0x38]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [eax + 0x3c]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [eax + 0x30]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [eax + 0x34]
lea eax, [esp + 0x24]
push eax
movss dword [esp + 0x44], xmm0
call fcn.10155cb0
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x2d0]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x24], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 0x24]
push eax
movups xmmword [esp + 0x38], xmm0
call fcn.10155cb0
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x1b0]
movss xmm0, dword [eax]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 0x58]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [eax + 0x5c]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [eax + 0x50]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [eax + 0x54]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [eax + 0x48]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [eax + 0x4c]
lea eax, [esp + 0x24]
push eax
movss dword [esp + 0x44], xmm0
call fcn.10155cb0
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x240]
movups xmm0, xmmword [eax + 0x18]
movups xmmword [esp + 0x24], xmm0
movups xmm0, xmmword [eax + 0x28]
lea eax, [esp + 0x24]
push eax
movups xmmword [esp + 0x38], xmm0
call fcn.10155cb0
push dword [ebp + 0x18]
lea ecx, [esp + 0x364]
call fcn.10156ec0
push dword [ebp + 0x18]
lea ecx, [esp + 0x2d4]
call fcn.10156ec0
mov eax, dword [ebp + 0x18]
xorps xmm3, xmm3
movss dword [esp + 0x20], xmm3
mov dword [esp + 0x1c], 0
test eax, eax
js 0x10156c9b
movss xmm1, dword [0x10386834]
movd xmm0, eax
lea eax, [edi + 1]
cvtdq2ps xmm0, xmm0
lea ecx, [eax*8]
shl eax, 4
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x84], eax
movss xmm2, dword [esp + 0x330]
divss xmm1, xmm0
mov eax, dword [esp + 0x58]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x6c]
add eax, 4
mov dword [esp + 0x13c], 0x3f800000
mov dword [esp + 0x1ac], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0x144], ecx
mov dword [esp + 0x88], eax
movss xmm0, dword [esp + 0x3b4]
movss xmm5, dword [esp + 0x3c0]
movss xmm6, dword [esp + 0x3bc]
movss xmm7, dword [esp + 0x3b8]
movss xmm3, dword [esp + 0x31c]
movss dword [esp + 0xd0], xmm2
movss xmm2, dword [esp + 0x32c]
movss dword [esp + 0xcc], xmm2
movss xmm2, dword [esp + 0x328]
movss dword [esp + 0xc0], xmm2
movss xmm2, dword [esp + 0x324]
movss dword [esp + 0x138], xmm1
movss xmm1, dword [esp + 0x3ac]
movss dword [esp + 0xb8], xmm0
movss xmm0, dword [esp + 0x3b0]
movss dword [esp + 0xbc], xmm2
movss xmm2, dword [esp + 0x320]
nop dword [eax]
nop word [eax + eax]
movaps xmm4, xmm0
movss dword [esp + 0x148], xmm1
movaps xmm0, xmm1
movss dword [esp + 0x1a0], xmm4
addss xmm0, dword [esp + 0xb8]
movaps xmm1, xmm2
lea ecx, [esp + 0x1b0]
push edi
movss dword [esp + 0x190], xmm1
movss dword [esp + 0x150], xmm0
movaps xmm0, xmm4
addss xmm0, xmm7
movss dword [esp + 0x194], xmm0
movaps xmm0, xmm6
addss xmm0, dword [esp + 0xbc]
movss dword [esp + 0xbc], xmm0
movaps xmm0, xmm5
addss xmm0, xmm7
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0x3c8]
addss xmm0, xmm6
movss dword [esp + 0x18c], xmm0
movss xmm0, dword [esp + 0x3cc]
addss xmm0, xmm5
movss dword [esp + 0x174], xmm0
movaps xmm0, xmm3
movss dword [esp + 0x138], xmm0
addss xmm0, dword [esp + 0xc0]
movss dword [esp + 0x170], xmm0
movaps xmm0, xmm1
addss xmm0, dword [esp + 0xc4]
movss dword [esp + 0x154], xmm0
movss xmm0, dword [esp + 0xd0]
addss xmm0, dword [esp + 0xc0]
movss dword [esp + 0xc0], xmm0
movss xmm0, dword [esp + 0xd4]
addss xmm0, dword [esp + 0xc4]
movss dword [esp + 0xc4], xmm0
movss xmm0, dword [esp + 0x338]
addss xmm0, dword [esp + 0xd0]
movss dword [esp + 0xd0], xmm0
movss xmm0, dword [esp + 0x33c]
addss xmm0, dword [esp + 0xd4]
movss dword [esp + 0xd4], xmm0
call fcn.10156ec0
push edi
lea ecx, [esp + 0x244]
call fcn.10156ec0
xor edx, edx
xorps xmm4, xmm4
movss dword [esp + 0x4c], xmm4
xorps xmm1, xmm1
mov dword [esp + 0x74], edx
test edi, edi
js 0x10156bd8
movss xmm1, dword [esp + 0x20]
movss xmm5, dword [0x10386834]
movss xmm0, dword [esp + 0x354]
movaps xmm2, xmm5
subss xmm2, xmm1
mulss xmm0, xmm1
mov esi, dword [esp + 0x5c]
sub esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
movaps xmm3, xmm2
movss dword [esp + 0x50], xmm2
mulss xmm3, dword [esp + 0x33c]
mov dword [esp + 0x110], esi
lea esi, [edi + 1]
add dword [esp + 0x1f4], esi
add dword [esp + 0x284], esi
addss xmm3, xmm0
movss xmm7, dword [esp + 0x200]
movss xmm0, dword [esp + 0x3e4]
mulss xmm0, xmm1
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x88]
movss dword [esp + 0x1a4], xmm3
movaps xmm3, xmm2
mulss xmm3, dword [esp + 0x3cc]
mov dword [esp + 0x11c], 0x3f800000
mov dword [esp + 0x60], edx
mov dword [esp + 0x78], eax
addss xmm3, xmm0
mov dword [esp + 0x18], ecx
movss xmm0, dword [esp + 0x358]
mulss xmm0, xmm1
movss dword [esp + 0x1a8], xmm3
movaps xmm3, xmm2
mulss xmm3, dword [esp + 0x340]
mulss xmm2, dword [esp + 0x3d0]
addss xmm3, xmm0
movss xmm0, dword [esp + 0x3e8]
mulss xmm0, xmm1
movaps xmm1, xmm5
addss xmm2, xmm0
movss dword [esp + 0x108], xmm3
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss xmm3, dword [esp + 0x1fc]
divss xmm1, xmm0
movss dword [esp + 0x10c], xmm2
movss xmm2, dword [esp + 0x290]
movss dword [esp + 0x118], xmm1
movss xmm1, dword [esp + 0x28c]
jmp 0x10156789
movss xmm1, dword [esp + 0x114]
cmp dword [esp + 0x44], 0
subss xmm5, xmm4
movaps xmm0, xmm3
mov esi, dword [esp + 0x7c]
addss xmm0, dword [esp + 0x204]
movaps xmm6, xmm5
movss dword [esp + 0x14], xmm5
mulss xmm6, dword [esp + 0x134]
movss dword [esp + 0x130], xmm0
movss dword [esp + 0x1fc], xmm0
movaps xmm0, xmm7
addss xmm0, dword [esp + 0x208]
mulss xmm5, dword [esp + 0x18c]
movss dword [esp + 0x120], xmm0
movss dword [esp + 0x200], xmm0
movss xmm0, dword [esp + 0x20c]
addss xmm0, dword [esp + 0x204]
movss dword [esp + 0x204], xmm0
movss xmm0, dword [esp + 0x210]
addss xmm0, dword [esp + 0x208]
movss dword [esp + 0x208], xmm0
movss xmm0, dword [esp + 0x214]
addss xmm0, dword [esp + 0x20c]
movss dword [esp + 0x20c], xmm0
movss xmm0, dword [esp + 0x218]
addss xmm0, dword [esp + 0x210]
movss dword [esp + 0x210], xmm0
movaps xmm0, xmm1
addss xmm0, dword [esp + 0x294]
mulss xmm1, dword [esp + 0x20]
movss dword [esp + 0x114], xmm0
movss dword [esp + 0x28c], xmm0
movaps xmm0, xmm2
addss xmm0, dword [esp + 0x298]
mulss xmm2, dword [esp + 0x20]
movss dword [esp + 0x90], xmm0
movss dword [esp + 0x290], xmm0
movss xmm0, dword [esp + 0x29c]
addss xmm0, dword [esp + 0x294]
movss dword [esp + 0x294], xmm0
movss xmm0, dword [esp + 0x2a0]
addss xmm0, dword [esp + 0x298]
movss dword [esp + 0x298], xmm0
movss xmm0, dword [esp + 0x2a4]
addss xmm0, dword [esp + 0x29c]
movss dword [esp + 0x29c], xmm0
movss xmm0, dword [esp + 0x2a8]
addss xmm0, dword [esp + 0x2a0]
movss dword [esp + 0x2a0], xmm0
movss xmm0, dword [esp + 0x148]
mulss xmm0, xmm4
addss xmm6, xmm0
movss xmm0, dword [esp + 0x1a0]
mulss xmm0, xmm4
movss xmm4, dword [esp + 0x50]
mulss xmm4, xmm3
movss xmm3, dword [esp + 0x50]
addss xmm5, xmm0
movss xmm0, dword [esp + 0x1a8]
mulss xmm3, xmm7
addss xmm4, xmm1
movss xmm7, dword [esp + 0x4c]
movss xmm1, dword [esp + 0x108]
mulss xmm1, dword [esp + 0x14]
addss xmm3, xmm2
movss xmm2, dword [esp + 0x1a4]
addss xmm6, xmm4
mulss xmm2, dword [esp + 0x14]
mulss xmm0, xmm7
addss xmm5, xmm3
addss xmm2, xmm0
movaps xmm0, xmm7
mulss xmm0, dword [esp + 0x10c]
addss xmm1, xmm0
subss xmm6, xmm2
subss xmm5, xmm1
movss dword [esi], xmm6
mov esi, dword [esp + 0x110]
movss dword [esi + ecx], xmm5
mov esi, dword [ebp + 0x14]
je 0x10156a17
mov edx, dword [esp + 0x44]
movss xmm5, dword [esp + 0x20]
movss xmm0, dword [esp + 0x50]
shufps xmm5, xmm5, 0
movups xmm1, xmmword [edx + 0x10]
movups xmm2, xmmword [edx]
movups xmm4, xmmword [edx + 0x20]
movups xmm6, xmmword [edx + 0x30]
mov edx, dword [esp + 0x74]
shufps xmm0, xmm0, 0
movaps xmm3, xmm5
mulps xmm2, xmm0
mulps xmm3, xmm1
mulps xmm6, xmm0
mulps xmm5, xmm4
addps xmm3, xmm2
movss xmm2, dword [esp + 0x14]
movaps xmm0, xmm2
shufps xmm0, xmm0, 0
addps xmm5, xmm6
mulps xmm3, xmm0
movaps xmm0, xmm7
shufps xmm0, xmm0, 0
mulps xmm5, xmm0
addps xmm5, xmm3
movups xmmword [eax], xmm5
jmp 0x10156a1d
movss xmm2, dword [esp + 0x14]
cmp dword [esp + 0x6c], 0
je 0x10156aad
movss xmm5, dword [esp + 0x50]
movss xmm0, dword [esi + 0x10]
movss xmm4, dword [esp + 0x20]
movss xmm3, dword [esi + 0x18]
movss xmm1, dword [esi + 8]
mulss xmm0, xmm4
mulss xmm3, xmm5
mulss xmm1, xmm4
addss xmm3, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esi]
addss xmm1, xmm0
mulss xmm3, xmm7
movss xmm0, dword [esi + 0xc]
mulss xmm0, xmm4
mulss xmm1, xmm2
movss xmm2, dword [esi + 4]
mulss xmm2, xmm5
addss xmm3, xmm1
movss xmm1, dword [esi + 0x1c]
mulss xmm1, xmm5
addss xmm2, xmm0
movss xmm0, dword [esi + 0x14]
mulss xmm0, xmm4
movss dword [ecx - 4], xmm3
mulss xmm2, dword [esp + 0x14]
addss xmm1, xmm0
mulss xmm1, xmm7
addss xmm2, xmm1
movss dword [ecx], xmm2
mov edi, dword [ebp + 0x18]
cmp dword [esp + 0x1c], edi
mov edi, dword [ebp + 0x1c]
jge 0x10156b54
cmp edx, edi
jge 0x10156b54
mov eax, dword [esp + 0xb4]
add eax, edx
movzx edx, dx
lea eax, [eax + eax*2]
add eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xec]
movzx edi, ax
mov eax, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [esp + 0x14]
mov esi, ecx
imul esi, edi
mov dword [esp + 0x8c], edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x70]
add esi, edx
mov word [edi + eax*2], si
mov edi, dword [esp + 0x14]
lea eax, [esi + 1]
mov word [ecx + edi*2 + 2], ax
mov ecx, dword [esp + 0x4c]
inc ecx
imul ecx, dword [esp + 0x8c]
add ecx, edx
mov edx, edi
mov edi, dword [esp + 0x70]
lea eax, [ecx + 1]
mov word [edi + edx*2 + 4], ax
mov word [edi + edx*2 + 8], ax
mov eax, dword [esp + 0x78]
mov word [edi + edx*2 + 0xa], cx
mov ecx, dword [esp + 0x18]
mov word [edi + edx*2 + 6], si
mov edx, dword [esp + 0x74]
mov edi, dword [ebp + 0x1c]
addss xmm7, dword [esp + 0x118]
movss xmm5, dword [0x10386834]
xorps xmm1, xmm1
comiss xmm1, xmm7
movss dword [esp + 0x8c], xmm7
jbe 0x10156b7b
xorps xmm4, xmm4
jmp 0x10156b97
comiss xmm5, xmm7
lea eax, [esp + 0x8c]
lea esi, [esp + 0x11c]
cmovbe eax, esi
movss xmm4, dword [eax]
mov eax, dword [esp + 0x78]
add dword [esp + 0x7c], 8
inc edx
movss xmm7, dword [esp + 0x120]
add eax, 0x10
movss xmm3, dword [esp + 0x130]
add ecx, 8
movss xmm2, dword [esp + 0x90]
movss dword [esp + 0x4c], xmm4
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x18], ecx
cmp edx, edi
jle 0x10156780
movss xmm0, dword [esp + 0x20]
addss xmm0, dword [esp + 0x138]
comiss xmm1, xmm0
movss dword [esp + 0x90], xmm0
jbe 0x10156bfa
xorps xmm3, xmm3
jmp 0x10156c1a
movss xmm1, dword [0x10386834]
lea eax, [esp + 0x90]
comiss xmm1, xmm0
lea ecx, [esp + 0x13c]
cmovbe eax, ecx
movss xmm3, dword [eax]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x140]
inc eax
add dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x144]
add dword [esp + 0x84], ecx
add dword [esp + 0x88], ecx
add dword [esp + 0xb4], edi
movss xmm0, dword [esp + 0x190]
movss xmm1, dword [esp + 0x14c]
movss xmm2, dword [esp + 0x150]
movss xmm5, dword [esp + 0x170]
movss xmm6, dword [esp + 0x188]
movss xmm7, dword [esp + 0xa0]
movss dword [esp + 0x20], xmm3
movss xmm3, dword [esp + 0x16c]
mov dword [esp + 0x1c], eax
cmp eax, dword [ebp + 0x18]
jle 0x101564d0
cmp dword [esp + 0x58], 0
je 0x10156d91
lea ecx, [esp + 0xac]
call fcn.100b9830
mov esi, eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x10156cc5
mov ecx, 1
lock xadd dword [eax], ecx
mov edi, dword [esp + 0x48]
mov dword [esp + 0xf4], eax
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xfc], 0xe
mov dword [esp + 0x100], 2
mov dword [esp + 0x104], edi
mov dword [esp + 0x108], 1
call fcn.10042790
mov eax, dword [esp + 0xa4]
push 0
push dword [esp + 0x60]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x100]
push eax
push 0
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], 6
push esi
push eax
mov dword [esp + 0x48], 3
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], 1
call fcn.100d8010
mov ecx, dword [esp + 0x40]
add esp, 0x1c
test ecx, ecx
je 0x10156d6c
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x10156d6c
push 0x90
push ecx
call fcn.1037dfe9
add esp, 8
mov ecx, dword [esp + 0xf4]
test ecx, ecx
je 0x10156d91
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x10156d91
push 0x90
push ecx
call fcn.1037dfe9
add esp, 8
mov esi, dword [esp + 0xf0]
lea ecx, [esp + 0xac]
push esi
call fcn.100b98c0
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x10156db9
push eax
call fcn.100550c0
add esp, 4
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x10156dd9
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x10156dd9
push ecx
call fcn.100550c0
add esp, 4
lea ecx, [esp + 0xbf8]
call fcn.1007d750
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xc14]
xor ecx, esp
call fcn.1037e005
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xc1c]
pop edi
pop esi
xor ecx, esp
mov dword [eax], 0
call fcn.1037e005
mov esp, ebp
pop ebp
ret