Function at 0x10078080
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 0x100780da
test byte [ebp + 8], 1
jne 0x100780bd
test byte [ebp + 0x10], 1
je 0x100780da
mov ecx, dword [esp + 0x80]
push 1
push 0xfffffa09
call fcn.10063120
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 0x100780fe
push edi
push 0
push ebp
mov ecx, esi
call fcn.10074890
test byte [edi], 8
jne 0x1007815e
cmp dword [esi + 0x100c], 0
jne 0x10078117
push edi
push 0
push ebp
mov ecx, esi
call fcn.10074890
test byte [edi], 8
mov eax, dword [esp + 0x80]
jne 0x1007813a
cmp eax, dword [esi + 0x1010]
jae 0x1007813a
push edi
push esi
mov esi, eax
mov ecx, ebx
push esi
push ebp
call fcn.10076820
jmp 0x10078165
cmp eax, 0x3fffffff
jbe 0x10078151
push 1
push 0xfffffbe9
mov ecx, edi
call fcn.10063120
jmp 0x1007815e
push edi
push esi
push dword [ebp + 0x10]
mov ecx, ebx
push ebp
call fcn.10076820
mov esi, dword [esp + 0x80]
mov eax, dword [edi]
and eax, 8
jne 0x1007817a
cmp dword [ebx + 0x1010], esi
sbb ecx, ecx
neg ecx
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x10078266
mov eax, dword [ebx + 0x1008]
test eax, eax
je 0x100781d7
cmp esi, 0xee8
ja 0x100781d7
cmp dword [ebx + 0x1004], 0
jne 0x100781d7
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx]
cmp eax, 0x1000
ja 0x100781c4
push edx
push dword [ebp + 4]
lea eax, [ebx + 4]
add eax, ecx
push eax
call fcn.101180b0
add esp, 0xc
jmp 0x100785eb
push 1
push 0xfffffbe9
mov ecx, edi
call fcn.10063120
jmp 0x100785eb
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 0x1007822e
mov ecx, dword [ebx + 0x1018]
test ecx, ecx
je 0x1007822e
cmp dword [ecx + 4], edx
jle 0x1007822e
push eax
call fcn.1004de50
cmp dword [eax], 0
jne 0x10078272
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.100741c0
test byte [edi], 8
je 0x10078272
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10078266
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 0x100785d4
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 0x100785d1
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 0x100782e3
xor esi, esi
jmp 0x100782f7
push esi
call fcn.1004de50
mov esi, dword [eax]
mov dword [esp + 0x28], esi
test esi, esi
jne 0x100783fe
push edi
lea eax, [esp + 0x64]
mov dword [esp + 0x28], 0
push eax
push ebp
mov ecx, ebx
call fcn.10073f70
test byte [edi], 8
jne 0x1007859f
push 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
call fcn.100615f0
mov esi, eax
test esi, esi
jne 0x1007833c
push 1
push 0xfffffc0c
mov ecx, edi
call fcn.10063120
jmp 0x10078384
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x60]
add eax, 4
push eax
push 1
push esi
call fcn.10061d60
lea eax, [esp + 0x34]
push eax
push esi
lea ecx, [esp + 0x68]
call fcn.10061a50
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.101180b0
add esp, 0xc
test byte [edi], 8
jne 0x100783b8
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
call fcn.100794a0
mov ecx, dword [ebx + 0x1018]
lea eax, [esp + 0x14]
push edi
push eax
push dword [esp + 0x18]
mov dword [esp + 0x20], esi
call fcn.1004def0
test byte [edi], 8
je 0x100784fb
mov eax, dword [esp + 0x60]
mov dword [esp + 0x44], 1
test eax, eax
je 0x100783cd
mov eax, dword [eax + 0xc]
jmp 0x100783cf
xor eax, eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [ebx + 0x1038]
push 1
push eax
call fcn.1008ed20
test dword [esp + 0x44], 0xfffffffe
je 0x100784f2
lea ecx, [esp + 0x44]
call fcn.10062fa0
jmp 0x100784f2
push edi
push esi
lea eax, [esp + 0x68]
mov ecx, ebx
push eax
call fcn.10075cf0
lea eax, [esp + 0x2c]
push eax
push esi
lea ecx, [esp + 0x68]
call fcn.10061a50
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 0x10078461
cmp dword [esp + 0x20], 0
jne 0x10078461
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.101180b0
add esp, 0xc
jmp 0x100784dc
mov eax, dword [esp + 0x14]
add eax, 4
cmp eax, 0x1000
ja 0x100784ce
push dword [esp + 0x30]
lea esi, [ebx + 4]
push dword [esp + 0x30]
push esi
call fcn.101180b0
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.101180b0
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.10061bc0
test eax, eax
jne 0x100784dc
push 1
push 0xfffffc0c
jmp 0x100784d5
push 1
push 0xfffffbe9
mov ecx, edi
call fcn.10063120
test byte [edi], 8
jne 0x1007859f
push dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
call fcn.100794a0
test byte [edi], 8
jne 0x1007859f
cmp dword [esp + 0x10], 0
je 0x1007859f
mov ecx, dword [ebx + 0x1018]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 4]
jl 0x10078519
xor eax, eax
jmp 0x10078521
push eax
call fcn.1004de50
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.10075cf0
test byte [edi], 8
jne 0x1007858d
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x28]
lea ecx, [esp + 0x4c]
call fcn.10061a50
mov eax, dword [esp + 0x3c]
mov dword [eax], esi
push dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
call fcn.100794a0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1007859f
add eax, 0x4c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
and eax, 8
jne 0x100785c9
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 0x100782a0
or ecx, 0xffffffff
mov eax, dword [esp + 0x60]
test eax, eax
je 0x100785e4
add eax, 0x4c
lock xadd dword [eax], ecx
dec ecx
mov esi, dword [esp + 0x80]
test byte [edi], 8
jne 0x10078266
cmp dword [esp + 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x102c], 0
je 0x1007860e
mov dword [ebx + 0x1010], esi
cmp dword [ebp + 0x18], 1
jne 0x10078268
cmp dword [ebx + 0x1004], 0
jne 0x10078268
pop edi
pop esi
pop ebp
mov dword [ebx + 0x1004], 1
pop ebx
add esp, 0x6c
ret 0xc