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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [esp + 0x78]
mov ebx, ecx
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x1014]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp al, 0xc
jne 0x1007793a
test byte [ebp + 8], 1
jne 0x1007791d
test byte [ebp + 0x10], 1
je 0x1007793a
mov ecx, dword [esp + 0x80]
push 1
push 0xfffffa09
call fcn.10062a50
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret 0xc
push esi
mov esi, dword [esp + 0x80]
push edi
mov edi, dword [esp + 0x88]
cmp dword [esi + 0x100c], 0
jne 0x1007795e
push edi
push 0
push ebp
mov ecx, esi
call fcn.100740f0
test byte [edi], 8
jne 0x100779be
cmp dword [esi + 0x100c], 0
jne 0x10077977
push edi
push 0
push ebp
mov ecx, esi
call fcn.100740f0
test byte [edi], 8
mov eax, dword [esp + 0x80]
jne 0x1007799a
cmp eax, dword [esi + 0x1010]
jae 0x1007799a
push edi
push esi
mov esi, eax
mov ecx, ebx
push esi
push ebp
call fcn.10076080
jmp 0x100779c5
cmp eax, 0x3fffffff
jbe 0x100779b1
push 1
push 0xfffffbe9
mov ecx, edi
call fcn.10062a50
jmp 0x100779be
push edi
push esi
push dword [ebp + 0x10]
mov ecx, ebx
push ebp
call fcn.10076080
mov esi, dword [esp + 0x80]
mov eax, dword [edi]
and eax, 8
jne 0x100779da
cmp dword [ebx + 0x1010], esi
sbb ecx, ecx
neg ecx
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x10077ac6
mov eax, dword [ebx + 0x1008]
test eax, eax
je 0x10077a37
cmp esi, 0xee8
ja 0x10077a37
cmp dword [ebx + 0x1004], 0
jne 0x10077a37
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx]
cmp eax, 0x1000
ja 0x10077a24
push edx
push dword [ebp + 4]
lea eax, [ebx + 4]
add eax, ecx
push eax
call fcn.101175c0
add esp, 0xc
jmp 0x10077e4b
push 1
push 0xfffffbe9
mov ecx, edi
call fcn.10062a50
jmp 0x10077e4b
xor edx, edx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x6c], 0xff
mov dword [esp + 0x70], 8
mov dword [esp + 0x74], 0xff
mov dword [esp + 0x78], 0
mov dword [esp + 0x88], edx
test eax, eax
jne 0x10077a8e
mov ecx, dword [ebx + 0x1018]
test ecx, ecx
je 0x10077a8e
cmp dword [ecx + 4], edx
jle 0x10077a8e
push eax
call fcn.1004dac0
cmp dword [eax], 0
jne 0x10077ad2
mov eax, dword [ebx + 0x1010]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
push edi
cmova ecx, eax
lea eax, [ebx + 4]
push ecx
push eax
lea eax, [esp + 0x6c]
mov ecx, ebx
push eax
push ebp
call fcn.10073a20
test byte [edi], 8
je 0x10077ad2
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10077ac6
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0xc
mov eax, 0x80c121b3
or ecx, 0xffffffff
mul dword [ebp + 0x10]
mov esi, edx
shr esi, 0xb
test byte [edi], 8
mov dword [esp + 0x10], esi
jne 0x10077e34
lea eax, [esi - 1]
mov dword [esp + 0x1c], eax
imul eax, esi, 0xfe8
mov dword [esp + 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x88]
cmp eax, edx
jae 0x10077e31
mov ecx, eax
sub edx, eax
sub ecx, dword [esp + 0x18]
mov eax, 0xfe8
add ecx, dword [ebp + 0x10]
sub eax, ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0x1018]
cmp eax, edx
cmovb edx, eax
mov dword [esp + 0x84], edx
cmp esi, dword [ecx + 4]
jl 0x10077b43
xor esi, esi
jmp 0x10077b57
push esi
call fcn.1004dac0
mov esi, dword [eax]
mov dword [esp + 0x28], esi
test esi, esi
jne 0x10077c5e
push edi
lea eax, [esp + 0x64]
mov dword [esp + 0x28], 0
push eax
push ebp
mov ecx, ebx
call fcn.100737d0
test byte [edi], 8
jne 0x10077dff
push 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
call fcn.10060f20
mov esi, eax
test esi, esi
jne 0x10077b9c
push 1
push 0xfffffc0c
mov ecx, edi
call fcn.10062a50
jmp 0x10077be4
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x60]
add eax, 4
push eax
push 1
push esi
call fcn.10061690
lea eax, [esp + 0x34]
push eax
push esi
lea ecx, [esp + 0x68]
call fcn.10061380
mov eax, dword [ebp + 4]
add eax, dword [esp + 0x88]
push dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x3c]
add eax, 4
push eax
call fcn.101175c0
add esp, 0xc
test byte [edi], 8
jne 0x10077c18
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
call fcn.10078cf0
mov ecx, dword [ebx + 0x1018]
lea eax, [esp + 0x14]
push edi
push eax
push dword [esp + 0x18]
mov dword [esp + 0x20], esi
call fcn.1004db60
test byte [edi], 8
je 0x10077d5b
mov eax, dword [esp + 0x60]
mov dword [esp + 0x44], 1
test eax, eax
je 0x10077c2d
mov eax, dword [eax + 0xc]
jmp 0x10077c2f
xor eax, eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [ebx + 0x1038]
push 1
push eax
call fcn.1008e340
test dword [esp + 0x44], 0xfffffffe
je 0x10077d52
lea ecx, [esp + 0x44]
call fcn.100628d0
jmp 0x10077d52
push edi
push esi
lea eax, [esp + 0x68]
mov ecx, ebx
push eax
call fcn.10075550
lea eax, [esp + 0x2c]
push eax
push esi
lea ecx, [esp + 0x68]
call fcn.10061380
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x84]
lea eax, [edx + ecx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffffc
cmp eax, dword [esp + 0x14]
jb 0x10077cc1
cmp dword [esp + 0x20], 0
jne 0x10077cc1
mov eax, dword [ebp + 4]
add eax, dword [esp + 0x88]
push edx
push eax
mov eax, dword [esp + 0x34]
add eax, 4
add eax, ecx
push eax
call fcn.101175c0
add esp, 0xc
jmp 0x10077d3c
mov eax, dword [esp + 0x14]
add eax, 4
cmp eax, 0x1000
ja 0x10077d2e
push dword [esp + 0x30]
lea esi, [ebx + 4]
push dword [esp + 0x30]
push esi
call fcn.101175c0
mov eax, dword [ebp + 4]
add eax, dword [esp + 0x94]
push dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x38]
add eax, 8
add eax, ebx
push eax
call fcn.101175c0
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x78]
add esp, 0x18
mov dword [esi], 0
add eax, 4
push eax
push esi
mov esi, dword [esp + 0x30]
push esi
call fcn.100614f0
test eax, eax
jne 0x10077d3c
push 1
push 0xfffffc0c
jmp 0x10077d35
push 1
push 0xfffffbe9
mov ecx, edi
call fcn.10062a50
test byte [edi], 8
jne 0x10077dff
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
call fcn.10078cf0
test byte [edi], 8
jne 0x10077dff
cmp dword [esp + 0x10], 0
je 0x10077dff
mov ecx, dword [ebx + 0x1018]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 4]
jl 0x10077d79
xor eax, eax
jmp 0x10077d81
push eax
call fcn.1004dac0
mov eax, dword [eax]
push edi
push eax
mov dword [esp + 0x2c], eax
mov ecx, ebx
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0
push eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0xff
mov dword [esp + 0x60], 8
mov dword [esp + 0x64], 0xff
mov dword [esp + 0x68], 0
call fcn.10075550
test byte [edi], 8
jne 0x10077ded
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
lea ecx, [esp + 0x4c]
call fcn.10061380
mov eax, dword [esp + 0x3c]
mov dword [eax], esi
push dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
call fcn.10078cf0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10077dff
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
and eax, 8
jne 0x10077e29
add dword [esp + 0x18], 0xfe8
inc esi
inc dword [esp + 0x1c]
mov ecx, dword [esp + 0x84]
add dword [esp + 0x88], ecx
mov dword [esp + 0x10], esi
test eax, eax
je 0x10077b00
or ecx, 0xffffffff
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10077e44
add eax, 0x4c
lock xadd dword [eax], ecx
dec ecx
mov esi, dword [esp + 0x80]
test byte [edi], 8
jne 0x10077ac6
cmp dword [esp + 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x102c], 0
je 0x10077e6e
mov dword [ebx + 0x1010], esi
cmp dword [ebp + 0x18], 1
jne 0x10077ac8
cmp dword [ebx + 0x1004], 0
jne 0x10077ac8
pop edi
pop esi
pop ebp
mov dword [ebx + 0x1004], 1
pop ebx
add esp, 0x6c
ret 0xc