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

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
mov ebx, ecx
call fcn.10073f20
cmp dword [ebx + 0x100c], 0
mov esi, dword [esp + 0xac]
mov ebp, dword [esp + 0xa8]
jne 0x100760d6
cmp dword [ebp + 0x100c], 0
jne 0x100760c1
push esi
push 0
push dword [esp + 0xa8]
mov ecx, ebp
call fcn.100740f0
test byte [esi], 8
jne 0x100760ce
mov eax, dword [ebp + 0x1010]
jmp 0x100760d0
xor eax, eax
mov dword [ebx + 0x1010], eax
test byte [esi], 8
jne 0x10076e02
cmp dword [ebx + 0x1030], 0
push edi
mov edi, dword [esp + 0xa8]
je 0x10076127
cmp edi, dword [ebx + 0x1010]
ja 0x10076127
cmp dword [ebx + 0x1008], 0
jne 0x10076e01
mov ecx, dword [ebx + 0x1018]
test ecx, ecx
je 0x10076127
mov eax, 0x80c121b3
mul edi
shr edx, 0xb
push edx
call fcn.10074040
test eax, eax
jne 0x10076e01
cmp dword [ebp + 0x100c], 0
jne 0x10076141
push esi
push 0
push dword [esp + 0xac]
mov ecx, ebp
call fcn.100740f0
test byte [esi], 8
jne 0x10076e01
push esi
push dword [esp + 0xa8]
mov ecx, ebp
call fcn.100747d0
test byte [esi], 8
jne 0x10076e01
cmp edi, 0xee8
ja 0x10076202
cmp dword [ebx + 0x1008], 0
je 0x10076202
mov eax, dword [ebx + 0x1010]
cmp eax, 0xee8
ja 0x10076202
cmp dword [ebx + 0x1030], 0
je 0x100761c8
cmp edi, eax
jb 0x100761ad
sub edi, eax
add eax, 4
push edi
add eax, ebx
push 0
push eax
call fcn.10117460
add esp, 0xc
jmp 0x10076de8
push 1
push 0xfffffc15
mov ecx, esi
call fcn.10062a50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0x10
push esi
push eax
lea eax, [ebx + 4]
mov ecx, ebp
push eax
push dword [esp + 0xb0]
call fcn.10074060
cmp edi, eax
jbe 0x100761f3
sub edi, eax
add eax, 4
push edi
add eax, ebx
push 0
push eax
call fcn.10117460
add esp, 0xc
mov dword [ebx + 0x1008], 1
jmp 0x10076de8
xor ecx, ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0xff
mov dword [esp + 0x4c], 8
mov dword [esp + 0x50], 0xff
mov dword [esp + 0x54], 0
mov dword [esp + 0x18], ecx
cmp dword [ebx + 0x1030], ecx
je 0x100762e1
cmp dword [ebx + 0x1008], ecx
je 0x10076279
push esi
push dword [ebx + 0x1010]
lea eax, [ebx + 4]
mov ecx, ebx
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0xb4]
call fcn.10073a20
mov edi, dword [ebx + 0x1010]
mov dword [esp + 0x18], edi
jmp 0x100765df
mov ecx, dword [ebx + 0x1018]
mov eax, 0x80c121b3
mul edi
mov edi, edx
shr edi, 0xb
test ecx, ecx
je 0x100762d6
push 0
call fcn.10074040
test eax, eax
je 0x100762d6
test edi, edi
je 0x100762b9
mov edi, edi
mov ecx, dword [ebx + 0x1018]
cmp edi, dword [ecx + 4]
jge 0x100762b6
push edi
call fcn.1004dac0
cmp dword [eax], 0
jne 0x100762b9
dec edi
jne 0x100762a0
lea eax, [edi + 1]
imul edi, eax, 0xfe8
mov eax, dword [ebx + 0x1010]
cmp eax, edi
cmovb edi, eax
mov dword [esp + 0x18], edi
jmp 0x100765df
xor edi, edi
mov dword [esp + 0x18], edi
jmp 0x100765df
cmp dword [ebp + 0x1008], ecx
je 0x1007631f
push esi
push dword [ebp + 0x1010]
lea eax, [ebp + 4]
mov ecx, ebx
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0xb4]
call fcn.10073a20
test byte [esi], 8
jne 0x100765db
mov ecx, dword [ebp + 0x1010]
mov dword [esp + 0x18], ecx
jmp 0x100765cc
lea ecx, [esp + 0x7c]
xor edi, edi
call fcn.10057050
test byte [esi], 8
jne 0x100765ba
jmp 0x10076340
mov ecx, dword [ebx + 0x1018]
mov dword [esp + 0x20], 0
test ecx, ecx
je 0x1007639f
cmp edi, dword [ecx + 4]
jge 0x1007639f
push edi
call fcn.1004dac0
cmp dword [eax], 0
je 0x1007639f
mov ecx, dword [ebx + 0x1018]
mov dword [esp + 0x14], 0
cmp edi, dword [ecx + 4]
jl 0x10076387
push esi
xor ebp, ebp
lea eax, [esp + 0x40]
push ebp
push eax
mov ecx, ebx
call fcn.10075550
jmp 0x100763ce
push edi
call fcn.1004dac0
push esi
mov ecx, ebx
mov ebp, dword [eax]
lea eax, [esp + 0x40]
push ebp
push eax
call fcn.10075550
jmp 0x100763ce
push esi
lea eax, [esp + 0x40]
mov dword [esp + 0x18], 1
push eax
push dword [esp + 0xac]
mov ecx, ebx
xor ebp, ebp
call fcn.100737d0
test byte [esi], 8
mov eax, ebp
mov ecx, 1
cmove eax, ecx
mov dword [esp + 0x20], eax
test byte [esi], 8
jne 0x1007646c
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x1018]
cmp edi, dword [ecx + 4]
jl 0x100763ed
xor ecx, ecx
jmp 0x100763fc
push edi
call fcn.1004dac0
mov ecx, dword [eax]
mov eax, dword [esp + 0xac]
push esi
push ecx
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
call fcn.100755e0
test byte [esi], 8
jne 0x1007646c
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x1018]
cmp edi, dword [ecx + 4]
jl 0x10076428
xor eax, eax
jmp 0x10076430
push edi
call fcn.1004dac0
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x84]
call fcn.10061380
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
test ecx, ecx
je 0x10076470
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x1018]
call fcn.1004db60
mov eax, dword [esp + 0x2c]
test byte [esi], 8
jne 0x100764ba
cmp dword [esp + 0x14], 0
lea ecx, [esp + 0x3c]
push dword [esp + 0x30]
push eax
je 0x100764a0
call fcn.10060f20
mov ebp, eax
test ebp, ebp
jne 0x100764a6
push 1
push 0xfffffc0c
mov ecx, esi
call fcn.10062a50
jmp 0x100764a6
push ebp
call fcn.100614f0
test byte [esi], 8
jne 0x100764ba
push dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
call fcn.10078cf0
jmp 0x100764fe
cmp dword [esp + 0x20], 0
je 0x100764fe
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], 1
test eax, eax
je 0x100764d6
mov eax, dword [eax + 0xc]
jmp 0x100764d8
xor eax, eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [ebx + 0x1038]
push 1
push eax
call fcn.1008e340
test dword [esp + 0x58], 0xfffffffe
je 0x100764fe
lea ecx, [esp + 0x58]
call fcn.100628d0
test byte [esi], 8
jne 0x1007658e
test edi, edi
je 0x10076561
mov ecx, dword [ebx + 0x1018]
lea eax, [edi - 1]
cmp eax, dword [ecx + 4]
jl 0x1007651d
xor eax, eax
jmp 0x10076525
push eax
call fcn.1004dac0
mov eax, dword [eax]
push esi
push eax
mov dword [esp + 0x1c], eax
mov ecx, ebx
lea eax, [esp + 0x44]
push eax
call fcn.10075550
test byte [esi], 8
jne 0x1007658e
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x18]
lea ecx, [esp + 0x44]
call fcn.10061380
mov eax, dword [esp + 0x34]
mov dword [eax], ebp
push dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
call fcn.10078cf0
test byte [esi], 8
jne 0x1007658e
mov ecx, dword [ebx + 0x1018]
lea eax, [esp + 0x14]
push esi
push eax
push edi
mov dword [esp + 0x20], ebp
call fcn.1004db60
mov ebp, dword [esp + 0x18]
inc edi
add ebp, 0xfffffffc
add ebp, dword [esp + 0x30]
mov dword [esp + 0x18], ebp
jmp 0x10076592
mov ebp, dword [esp + 0x18]
test byte [esi], 8
jne 0x100765b3
cmp ebp, dword [esp + 0xa8]
jae 0x100765b3
mov eax, dword [esp + 0xac]
cmp ebp, dword [eax + 0x1010]
jb 0x10076340
mov ebp, dword [esp + 0xac]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x100765cc
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
test byte [esi], 8
jne 0x100765db
mov dword [ebx + 0x1008], 0
mov edi, dword [esp + 0x18]
test byte [esi], 8
mov eax, dword [esp + 0xa8]
jne 0x10076dd6
cmp edi, eax
jae 0x10076a24
cmp edi, dword [ebp + 0x1010]
jae 0x10076a24
cmp edi, dword [ebx + 0x1010]
jae 0x10076a24
mov ecx, dword [ebx + 0x1018]
mov eax, 0x80c121b3
mul edi
mov dword [esp + 0x20], 1
mov ebp, edx
shr ebp, 0xb
push ebp
call fcn.10074040
test eax, eax
jne 0x10076648
mov ecx, dword [esp + 0xac]
push esi
push ebp
push dword [esp + 0xac]
call fcn.10074970
test byte [esi], 8
jne 0x10076a1d
mov eax, dword [esp + 0xa8]
cmp edi, eax
jae 0x10076a24
mov eax, dword [esp + 0xac]
cmp edi, dword [eax + 0x1010]
jae 0x10076a1d
mov ecx, dword [ebx + 0x1018]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], 0xff
mov dword [esp + 0x8c], 8
mov dword [esp + 0x90], 0xff
mov dword [esp + 0x94], 0
test ecx, ecx
je 0x10076704
cmp ebp, dword [ecx + 4]
jge 0x10076704
push ebp
call fcn.1004dac0
cmp dword [eax], 0
je 0x10076704
mov ecx, dword [ebx + 0x1018]
push ebp
mov dword [esp + 0x18], 0
call fcn.10074040
push esi
push eax
mov dword [esp + 0x18], eax
mov ecx, ebx
lea eax, [esp + 0x44]
push eax
call fcn.10075550
jmp 0x10076743
push esi
lea eax, [esp + 0x40]
mov dword [esp + 0x18], 1
push eax
push dword [esp + 0xac]
mov ecx, ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
call fcn.100737d0
test byte [esi], 8
mov ecx, 1
mov eax, dword [esp + 0x24]
cmove eax, ecx
mov dword [esp + 0x24], eax
test byte [esi], 8
jne 0x100767e1
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x1018]
cmp ebp, dword [ecx + 4]
jl 0x10076762
xor ecx, ecx
jmp 0x10076771
push ebp
call fcn.1004dac0
mov ecx, dword [eax]
mov eax, dword [esp + 0xac]
push esi
push ecx
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
call fcn.100755e0
test byte [esi], 8
jne 0x100767e1
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x1018]
cmp ebp, dword [ecx + 4]
jl 0x1007679d
xor eax, eax
jmp 0x100767a5
push ebp
call fcn.1004dac0
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push ecx
push eax
lea ecx, [esp + 0x84]
call fcn.10061380
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
test eax, eax
je 0x100767e5
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push esi
push eax
lea eax, [ebp + 1]
push eax
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x1018]
call fcn.1004db60
mov ecx, dword [esp + 0x34]
test byte [esi], 8
jne 0x1007691c
mov eax, dword [ebx + 0x1010]
mov edx, 0xfe8
sub eax, edi
cmp eax, edx
cmovb edx, eax
cmp dword [esp + 0x20], 0
mov dword [esp + 0x28], edx
je 0x10076892
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.10061380
mov edi, dword [esp + 0x30]
mov eax, 0xfe8
mov ecx, dword [esp + 0x28]
add edi, 0xfffffffc
sub eax, edi
cmp ecx, eax
cmovae ecx, eax
lea eax, [edi + 4]
add eax, ecx
mov dword [esp + 0x28], ecx
push eax
push 1
push dword [esp + 0x18]
lea ecx, [esp + 0x48]
call fcn.10061690
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x14]
lea ecx, [esp + 0x44]
call fcn.10061380
mov eax, dword [esp + 0x34]
push dword [esp + 0x28]
add eax, 4
add eax, edi
push eax
mov eax, dword [esp + 0x34]
add eax, 4
add eax, edi
push eax
call fcn.101175c0
mov edi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x20], 0
jmp 0x10076908
cmp dword [esp + 0x14], 0
lea eax, [edx + 4]
push eax
push ecx
lea ecx, [esp + 0x44]
je 0x100768c1
call fcn.10060f20
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x100768ce
push 1
push 0xfffffc0c
mov ecx, esi
call fcn.10062a50
jmp 0x100768ca
push dword [esp + 0x18]
call fcn.100614f0
mov ecx, dword [esp + 0x10]
test byte [esi], 8
jne 0x1007691c
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xa8]
cmp edx, dword [eax + 0x1010]
jb 0x10076908
lea eax, [esp + 0x98]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.10061380
mov eax, dword [esp + 0x98]
mov dword [eax], 0
test byte [esi], 8
jne 0x1007691c
push dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
call fcn.10078cf0
jmp 0x10076960
cmp dword [esp + 0x24], 0
je 0x10076960
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], 1
test eax, eax
je 0x10076938
mov eax, dword [eax + 0xc]
jmp 0x1007693a
xor eax, eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [ebx + 0x1038]
push 1
push eax
call fcn.1008e340
test dword [esp + 0x58], 0xfffffffe
je 0x10076960
lea ecx, [esp + 0x58]
call fcn.100628d0
test byte [esi], 8
jne 0x10076a02
test ebp, ebp
je 0x100769da
mov ecx, dword [ebx + 0x1018]
lea eax, [ebp - 1]
push eax
call fcn.10074040
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], eax
call fcn.10057050
push esi
push dword [esp + 0x18]
lea eax, [esp + 0x60]
mov ecx, ebx
push eax
call fcn.10075550
test byte [esi], 8
jne 0x100769c8
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x18]
lea ecx, [esp + 0x60]
call fcn.10061380
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
call fcn.10078cf0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x100769da
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
test byte [esi], 8
jne 0x10076a02
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x1018]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push esi
push eax
push ebp
call fcn.1004db60
inc ebp
add edi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x10076a14
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
test byte [esi], 8
je 0x10076651
mov eax, dword [esp + 0xa8]
test byte [esi], 8
jne 0x10076dd6
cmp edi, eax
jae 0x10076dd6
mov eax, 0x80c121b3
mov dword [esp + 0x2c], 1
mul edi
push 0xfec
mov ebp, edx
lea eax, [ebx + 4]
push 0
shr ebp, 0xb
push eax
mov dword [esp + 0x2c], ebp
call fcn.10117460
add esp, 0xc
test byte [esi], 8
jne 0x10076dd6
lea eax, [ebp - 1]
mov dword [esp + 0x14], eax
imul eax, ebp, 0xfe8
mov dword [esp + 0x28], eax
lea ebx, [ebx]
cmp edi, dword [esp + 0xa8]
jae 0x10076dd6
mov ecx, dword [ebx + 0x1018]
xor edi, edi
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x10076adb
cmp ebp, dword [ecx + 4]
jge 0x10076adb
push ebp
call fcn.1004dac0
cmp dword [eax], edi
je 0x10076adb
mov ecx, dword [ebx + 0x1018]
mov dword [esp + 0x24], edi
cmp ebp, dword [ecx + 4]
jl 0x10076abf
xor ebp, ebp
jmp 0x10076ac7
push ebp
call fcn.1004dac0
mov ebp, dword [eax]
push esi
push ebp
lea eax, [esp + 0x44]
mov dword [esp + 0x18], ebp
push eax
mov ecx, ebx
call fcn.10075550
jmp 0x10076b12
push esi
lea eax, [esp + 0x40]
mov dword [esp + 0x28], 1
push eax
push dword [esp + 0xac]
xor ebp, ebp
mov dword [esp + 0x38], edi
mov ecx, ebx
mov dword [esp + 0x1c], ebp
call fcn.100737d0
test byte [esi], 8
mov eax, edi
mov ecx, 1
cmove eax, ecx
mov dword [esp + 0x1c], eax
test byte [esi], 8
jne 0x10076c86
mov eax, dword [esp + 0xa8]
mov edi, 0xfe8
mov ecx, dword [esp + 0x18]
sub eax, ecx
cmp eax, edi
cmovb edi, eax
cmp dword [esp + 0x2c], 0
je 0x10076c52
sub ecx, dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x40]
push ebp
call fcn.10061380
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
lea ebp, [ecx - 4]
cmp ebp, eax
jbe 0x10076bcb
test eax, eax
je 0x10076bcb
sub ebp, eax
lea eax, [ebx + 4]
push ecx
push dword [esp + 0x38]
cmp edi, ebp
push eax
cmovae edi, ebp
call fcn.101175c0
mov ebp, dword [esp + 0x30]
push edi
push 0
lea eax, [ebp + 8]
add eax, ebx
push eax
call fcn.10117460
add esp, 0x18
mov dword [ebx + 4], 0
lea eax, [ebp + 4]
mov ebp, dword [esp + 0x10]
add eax, edi
lea ecx, [ebx + 4]
push eax
push ecx
push ebp
lea ecx, [esp + 0x48]
call fcn.100614f0
test eax, eax
jne 0x10076c8a
push 1
push 0xfffffc0c
mov ecx, esi
call fcn.10062a50
jmp 0x10076c8a
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebx + 0x1010]
jb 0x10076be4
mov eax, dword [esp + 0x28]
xor edx, edx
add eax, ebp
cmp eax, ecx
cmovne ebp, edx
mov eax, 0xfe8
lea ecx, [esp + 0x3c]
sub eax, ebp
cmp edi, eax
cmovae edi, eax
lea eax, [edi + ebp]
mov dword [esp + 0x2c], eax
add eax, 4
push eax
push 1
push dword [esp + 0x18]
call fcn.10061690
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x14]
lea ecx, [esp + 0x44]
call fcn.10061380
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x34]
mov dword [eax], 0
jne 0x10076c33
mov edi, dword [esp + 0x2c]
xor ebp, ebp
mov eax, dword [esp + 0x34]
push edi
add eax, 4
add eax, ebp
push 0
push eax
call fcn.10117460
add esp, 0xc
mov dword [esp + 0x2c], 0
jmp 0x10076c86
cmp dword [esp + 0x24], 0
lea eax, [edi + 4]
push eax
lea eax, [ebx + 4]
lea ecx, [esp + 0x40]
push eax
je 0x10076c80
call fcn.10060f20
mov ebp, eax
test ebp, ebp
jne 0x10076c8a
push 1
push 0xfffffc0c
mov ecx, esi
call fcn.10062a50
jmp 0x10076c8a
push ebp
call fcn.100614f0
mov ebp, dword [esp + 0x10]
test byte [esi], 8
jne 0x10076c9e
push dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
call fcn.10078cf0
jmp 0x10076ce2
cmp dword [esp + 0x1c], 0
je 0x10076ce2
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], 1
test eax, eax
je 0x10076cba
mov eax, dword [eax + 0xc]
jmp 0x10076cbc
xor eax, eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [ebx + 0x1038]
push 1
push eax
call fcn.1008e340
test dword [esp + 0x58], 0xfffffffe
je 0x10076ce2
lea ecx, [esp + 0x58]
call fcn.100628d0
test byte [esi], 8
jne 0x10076dc5
cmp dword [esp + 0x20], 0
je 0x10076d8f
mov ecx, dword [ebx + 0x1018]
mov eax, dword [esp + 0x14]
cmp eax, dword [ecx + 4]
jl 0x10076d09
xor eax, eax
jmp 0x10076d11
push eax
call fcn.1004dac0
mov eax, dword [eax]
push esi
push eax
mov dword [esp + 0x24], eax
mov ecx, ebx
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0
push eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0xff
mov dword [esp + 0x74], 8
mov dword [esp + 0x78], 0xff
mov dword [esp + 0x7c], 0
call fcn.10075550
test byte [esi], 8
jne 0x10076d7d
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0x60]
call fcn.10061380
mov eax, dword [esp + 0x74]
mov dword [eax], ebp
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
call fcn.10078cf0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10076d8f
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
test byte [esi], 8
jne 0x10076dc5
mov ecx, dword [ebx + 0x1018]
lea eax, [esp + 0x1c]
push esi
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x24]
push eax
push ebp
call fcn.1004db60
add dword [esp + 0x28], 0xfe8
inc ebp
inc dword [esp + 0x14]
add dword [esp + 0x18], edi
mov dword [esp + 0x20], ebp
jmp 0x10076dc9
mov ebp, dword [esp + 0x20]
test byte [esi], 8
mov edi, dword [esp + 0x18]
je 0x10076a80
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10076de8
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
test byte [esi], 8
jne 0x10076e01
mov dword [ebx + 0x100c], 1
mov dword [ebx + 0x1030], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0x10