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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
and eax, 4
mov dword [esp + 0x44], eax
cmp eax, 1
sbb edx, edx
and edx, 0xffffffe8
add edx, 0x40
mov dword [esp + 0x40], edx
cmp eax, 1
sbb ecx, ecx
and ecx, 0xfffffff4
add ecx, 0x20
mov dword [esp + 0x34], ecx
cmp eax, 1
sbb eax, eax
and eax, 0xfffffff0
add eax, 0x2b
mov dword [esp + 0x3c], eax
call fcn.00787f69
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
and eax, 3
cmp eax, 3
jne 0x716b9c
mov dword [esp], 0x6ce738
call fcn.0077e2fe
mov dword [esp + 0x1c], 0x6cf03c
mov dword [esp + 0x18], 0x6d20c0
mov dword [esp + 0x14], 0xfbb
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6ce750
mov dword [esp + 8], 0x6d2080
mov dword [esp + 4], 0x1000
mov dword [esp], 3
call fcn.0077d2e6
mov dword [esp], 0x6ce738
call fcn.0077e2fe
mov dword [esp + 0x14], 0x6cf03c
mov dword [esp + 0x10], 0x6d20c0
mov dword [esp + 0xc], 0xfbb
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6ce77c
mov eax, dword [0x79e604]
add eax, 0x40
mov dword [esp], eax
call 0x911fa0
call 0x911fa8
cmp dword [esp + 0x74], 0
jne 0x716c38
mov dword [esp], 0x6ce738
call fcn.0077e2fe
mov dword [esp + 0x1c], 0x6cf05b
mov dword [esp + 0x18], 0x6d20c0
mov dword [esp + 0x14], 0xfbc
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6ce750
mov dword [esp + 8], 0x6d2080
mov dword [esp + 4], 0x1000
mov dword [esp], 3
call fcn.0077d2e6
mov dword [esp], 0x6ce738
call fcn.0077e2fe
mov dword [esp + 0x14], 0x6cf05b
mov dword [esp + 0x10], 0x6d20c0
mov dword [esp + 0xc], 0xfbc
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6ce77c
mov eax, dword [0x79e604]
add eax, 0x40
mov dword [esp], eax
call 0x911fa0
call 0x911fa8
test byte [esp + 0x7c], 2
je 0x716c46
mov eax, 0x6ce9b2
jmp 0x716c4b
mov eax, 0x6cea53
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0078900f
test ebx, ebx
je 0x716c7d
mov dword [ebx], 0
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
test eax, eax
je 0x716cca
mov edx, dword [edx]
mov edx, dword [edx + eax*4 - 4]
mov edi, edx
mov al, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x716cca
lea eax, [edx + ecx - 2]
mov edi, 0x6cefaf
mov ecx, 3
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb cl
cmp dl, cl
jne 0x716cca
mov byte [eax], 0
test ebx, ebx
je 0x716cca
mov dword [ebx], 1
mov eax, dword [esp + 0x7c]
and eax, 3
mov dword [esp + 0x4c], eax
je 0x716e61
mov edx, dword [esp + 0x7c]
and edx, 1
mov dword [esp + 0x48], edx
je 0x716cf2
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], ecx
jmp 0x716cfa
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
cmp dword [eax + 4], 0
jle 0x716e61
mov ebp, 0
mov esi, 0
lea edx, [esi*4]
mov dword [esp + 0x30], edx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov ebx, dword [eax + edx]
mov edi, ebx
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp dword [esp + 0x38], ecx
je 0x716d82
mov dword [esp], ebx
call fcn.007829e4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6cf064
mov dword [esp + 8], 0x6d2080
mov dword [esp + 4], 0x2000
mov dword [esp], 6
call fcn.0077d2e6
lea edi, [esi - 1]
mov dword [esp + 4], esi
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00788b0d
jmp 0x716e34
mov edx, dword [esp + 0x34]
mov dword [esp], edx
call fcn.00780eb8
mov ebp, eax
cmp dword [esp + 0x48], 0
je 0x716db8
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.007826ee
shr eax, 0x1f
jmp 0x716dd7
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0079963c
shr eax, 0x1f
test al, al
je 0x716e20
mov dword [esp], ebx
call fcn.007829e4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6cf094
mov dword [esp + 8], 0x6d2080
mov dword [esp + 4], 0x2000
mov dword [esp], 6
call fcn.0077d2e6
lea edi, [esi - 1]
mov dword [esp + 4], esi
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00788b0d
jmp 0x716e34
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x30]
mov dword [eax + ecx], ebp
mov edi, esi
mov ebp, 0
test ebx, ebx
je 0x716e40
mov dword [esp], ebx
call 0x911fb0
test ebp, ebp
je 0x716e51
mov dword [esp], ebp
call 0x911fb0
mov ebp, 0
lea esi, [edi + 1]
mov eax, dword [esp + 0x2c]
cmp dword [eax + 4], esi
jg 0x716d12
test byte [esp + 0x7c], 8
je 0x716ec2
cmp dword [esp + 0x4c], 0
je 0x716eaa
cmp dword [esp + 0x44], 0
je 0x716e90
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0078a83d
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0078a873
jmp 0x716ec2
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0078a7ff
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0078a81a
jmp 0x716ec2
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0078a183
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.0078a1b9
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call fcn.007880cd
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00787f9e
mov eax, 0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret