Function at 0x10077810
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 0x1007786a
test byte [ebp + 8], 1
jne 0x1007784d
test byte [ebp + 0x10], 1
je 0x1007786a
mov ecx, dword [esp + 0x80]
push 1
push 0xfffffa09
call fcn.10062940
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 0x1007788e
push edi
push 0
push ebp
mov ecx, esi
call fcn.10074020
test byte [edi], 8
jne 0x100778ee
cmp dword [esi + 0x100c], 0
jne 0x100778a7
push edi
push 0
push ebp
mov ecx, esi
call fcn.10074020
test byte [edi], 8
mov eax, dword [esp + 0x80]
jne 0x100778ca
cmp eax, dword [esi + 0x1010]
jae 0x100778ca
push edi
push esi
mov esi, eax
mov ecx, ebx
push esi
push ebp
call fcn.10075fb0
jmp 0x100778f5
cmp eax, 0x3fffffff
jbe 0x100778e1
push 1
push 0xfffffbe9
mov ecx, edi
call fcn.10062940
jmp 0x100778ee
push edi
push esi
push dword [ebp + 0x10]
mov ecx, ebx
push ebp
call fcn.10075fb0
mov esi, dword [esp + 0x80]
mov eax, dword [edi]
and eax, 8
jne 0x1007790a
cmp dword [ebx + 0x1010], esi
sbb ecx, ecx
neg ecx
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x100779f6
mov eax, dword [ebx + 0x1008]
test eax, eax
je 0x10077967
cmp esi, 0xee8
ja 0x10077967
cmp dword [ebx + 0x1004], 0
jne 0x10077967
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx]
cmp eax, 0x1000
ja 0x10077954
push edx
push dword [ebp + 4]
lea eax, [ebx + 4]
add eax, ecx
push eax
call fcn.10117410
add esp, 0xc
jmp 0x10077d7b
push 1
push 0xfffffbe9
mov ecx, edi
call fcn.10062940
jmp 0x10077d7b
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 0x100779be
mov ecx, dword [ebx + 0x1018]
test ecx, ecx
je 0x100779be
cmp dword [ecx + 4], edx
jle 0x100779be
push eax
call fcn.1004da10
cmp dword [eax], 0
jne 0x10077a02
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.10073950
test byte [edi], 8
je 0x10077a02
mov eax, dword [esp + 0x60]
test eax, eax
je 0x100779f6
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 0x10077d64
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 0x10077d61
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 0x10077a73
xor esi, esi
jmp 0x10077a87
push esi
call fcn.1004da10
mov esi, dword [eax]
mov dword [esp + 0x28], esi
test esi, esi
jne 0x10077b8e
push edi
lea eax, [esp + 0x64]
mov dword [esp + 0x28], 0
push eax
push ebp
mov ecx, ebx
call fcn.10073700
test byte [edi], 8
jne 0x10077d2f
push 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
call fcn.10060e30
mov esi, eax
test esi, esi
jne 0x10077acc
push 1
push 0xfffffc0c
mov ecx, edi
call fcn.10062940
jmp 0x10077b14
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x60]
add eax, 4
push eax
push 1
push esi
call fcn.100615a0
lea eax, [esp + 0x34]
push eax
push esi
lea ecx, [esp + 0x68]
call fcn.10061290
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.10117410
add esp, 0xc
test byte [edi], 8
jne 0x10077b48
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
call fcn.10078c20
mov ecx, dword [ebx + 0x1018]
lea eax, [esp + 0x14]
push edi
push eax
push dword [esp + 0x18]
mov dword [esp + 0x20], esi
call fcn.1004dab0
test byte [edi], 8
je 0x10077c8b
mov eax, dword [esp + 0x60]
mov dword [esp + 0x44], 1
test eax, eax
je 0x10077b5d
mov eax, dword [eax + 0xc]
jmp 0x10077b5f
xor eax, eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [ebx + 0x1038]
push 1
push eax
call fcn.1008e140
test dword [esp + 0x44], 0xfffffffe
je 0x10077c82
lea ecx, [esp + 0x44]
call fcn.100627c0
jmp 0x10077c82
push edi
push esi
lea eax, [esp + 0x68]
mov ecx, ebx
push eax
call fcn.10075480
lea eax, [esp + 0x2c]
push eax
push esi
lea ecx, [esp + 0x68]
call fcn.10061290
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 0x10077bf1
cmp dword [esp + 0x20], 0
jne 0x10077bf1
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.10117410
add esp, 0xc
jmp 0x10077c6c
mov eax, dword [esp + 0x14]
add eax, 4
cmp eax, 0x1000
ja 0x10077c5e
push dword [esp + 0x30]
lea esi, [ebx + 4]
push dword [esp + 0x30]
push esi
call fcn.10117410
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.10117410
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.10061400
test eax, eax
jne 0x10077c6c
push 1
push 0xfffffc0c
jmp 0x10077c65
push 1
push 0xfffffbe9
mov ecx, edi
call fcn.10062940
test byte [edi], 8
jne 0x10077d2f
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
call fcn.10078c20
test byte [edi], 8
jne 0x10077d2f
cmp dword [esp + 0x10], 0
je 0x10077d2f
mov ecx, dword [ebx + 0x1018]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 4]
jl 0x10077ca9
xor eax, eax
jmp 0x10077cb1
push eax
call fcn.1004da10
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.10075480
test byte [edi], 8
jne 0x10077d1d
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
lea ecx, [esp + 0x4c]
call fcn.10061290
mov eax, dword [esp + 0x3c]
mov dword [eax], esi
push dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
call fcn.10078c20
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10077d2f
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
and eax, 8
jne 0x10077d59
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 0x10077a30
or ecx, 0xffffffff
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10077d74
add eax, 0x4c
lock xadd dword [eax], ecx
dec ecx
mov esi, dword [esp + 0x80]
test byte [edi], 8
jne 0x100779f6
cmp dword [esp + 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x102c], 0
je 0x10077d9e
mov dword [ebx + 0x1010], esi
cmp dword [ebp + 0x18], 1
jne 0x100779f8
cmp dword [ebx + 0x1004], 0
jne 0x100779f8
pop edi
pop esi
pop ebp
mov dword [ebx + 0x1004], 1
pop ebx
add esp, 0x6c
ret 0xc