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

Disassembly:
push 0xffffffffffffffff
push 0x7168fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
mov eax, 0xd
mov ebp, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x18]
push 0x10
mov dword [ebp], eax
call fcn.0044f661
add esp, 4
mov dword [esp + 0xc], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x90], ebx
je 0x5edddf
mov ecx, eax
call fcn.005e0ca0
jmp 0x5edde1
xor eax, eax
push edi
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x94], 0xffffffff
cmp dword [edi + 0x98], 7
jne 0x5ee107
mov ecx, dword [edi + 0xa0]
lea eax, [esp + 0x7c]
push ebx
push eax
push str.OCGs
call fcn.005f4430
cmp dword [eax], 6
jne 0x5ee0fe
mov ecx, dword [esp + 0x84]
xor esi, esi
mov eax, dword [ecx + 0xc]
cmp eax, ebx
jle 0x5edea3
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.00603800
cmp dword [eax], 9
jne 0x5ede8d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
lea edx, [esp + 0x2c]
push ebx
mov dword [esp + 0x1c], ecx
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.005f2dd0
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.005ee870
add esp, 8
cmp eax, ebx
je 0x5ede84
mov ecx, dword [ebp + 4]
push eax
call fcn.005e0cd0
lea ecx, [esp + 0x2c]
call fcn.005f2e10
lea ecx, [esp + 0x1c]
call fcn.005f2e10
mov ecx, dword [esp + 0x84]
inc esi
cmp esi, dword [ecx + 0xc]
jl 0x5ede32
mov ecx, dword [edi + 0xa0]
lea eax, [esp + 0x3c]
push ebx
push eax
push 0x798ae4
call fcn.005f4430
cmp dword [eax], 7
jne 0x5ee0e4
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov ecx, dword [esp + 0x4c]
push 0x7ab064
call fcn.005f4430
cmp dword [eax], 6
jne 0x5edfec
mov ecx, dword [esp + 0x24]
xor edi, edi
cmp dword [ecx + 0xc], ebx
jle 0x5edfec
lea edx, [esp + 0x6c]
push ebx
push edx
push edi
call fcn.006037c0
cmp dword [eax], 7
jne 0x5edfd5
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x2c]
push ebx
push eax
push str.Event
call fcn.005f4430
cmp dword [eax], 4
jne 0x5edfcc
mov eax, dword [eax + 8]
mov esi, str.View
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x5edf4c
cmp cl, bl
je 0x5edf48
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x5edf4c
add eax, 2
add esi, 2
cmp cl, bl
jne 0x5edf28
xor eax, eax
jmp 0x5edf51
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x5edfcc
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x5c]
push ebx
push eax
push str.OCGs
call fcn.005f4430
cmp dword [eax], 6
jne 0x5edfc3
mov ecx, dword [esp + 0x64]
xor esi, esi
cmp dword [ecx + 0xc], ebx
jle 0x5edfc3
lea edx, [esp + 0x4c]
push edx
push esi
call fcn.00603800
cmp dword [eax], 9
jne 0x5edfb0
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x14]
mov dword [esp + 0x18], ecx
push edx
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.005ee1d0
cmp eax, ebx
je 0x5edfb0
mov dword [eax + 0x18], 1
lea ecx, [esp + 0x4c]
call fcn.005f2e10
mov ecx, dword [esp + 0x64]
inc esi
cmp esi, dword [ecx + 0xc]
jl 0x5edf79
lea ecx, [esp + 0x5c]
call fcn.005f2e10
lea ecx, [esp + 0x2c]
call fcn.005f2e10
lea ecx, [esp + 0x6c]
call fcn.005f2e10
mov ecx, dword [esp + 0x24]
inc edi
cmp edi, dword [ecx + 0xc]
jl 0x5edeee
lea ecx, [esp + 0x1c]
call fcn.005f2e10
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x1c]
push ebx
push eax
push 0x77cb10
call fcn.005f4430
cmp dword [eax], 6
jne 0x5ee072
mov ecx, dword [esp + 0x24]
xor esi, esi
cmp dword [ecx + 0xc], ebx
jle 0x5ee072
lea edx, [esp + 0x2c]
push edx
push esi
call fcn.00603800
cmp dword [eax], 9
jne 0x5ee05f
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x14]
mov dword [esp + 0x18], ecx
push edx
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.005ee1d0
cmp eax, ebx
je 0x5ee04e
mov dword [eax + 0x14], ebx
jmp 0x5ee05f
push str.Invalid_OCG_reference_in_OFF_array_in_default_viewing_OCCD
push 0xffffffffffffffff
push 1
call fcn.006033f0
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.005f2e10
mov ecx, dword [esp + 0x24]
inc esi
cmp esi, dword [ecx + 0xc]
jl 0x5ee019
lea ecx, [esp + 0x1c]
call fcn.005f2e10
mov eax, dword [ebp + 4]
xor ecx, ecx
cmp dword [eax + 8], ebx
jle 0x5ee0aa
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x18], ebx
je 0x5ee0a1
mov esi, dword [eax + 0xc]
cmp esi, 2
je 0x5ee0a1
xor edx, edx
cmp esi, ebx
sete dl
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 4]
inc ecx
cmp ecx, dword [eax + 8]
jl 0x5ee085
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x1c]
push ebx
push eax
push str.Order
call fcn.005f4430
cmp dword [eax], 6
jne 0x5ee0d9
mov ecx, dword [ebp]
push ebx
push ecx
lea edx, [esp + 0x24]
push ebp
push edx
call fcn.005eeb60
add esp, 0x10
mov dword [ebp + 8], eax
lea ecx, [esp + 0x1c]
call fcn.005f2e10
jmp 0x5ee0f5
push str.Missing_or_invalid_default_viewing_OCCD
push 0xffffffffffffffff
push 1
call fcn.006033f0
add esp, 0xc
lea ecx, [esp + 0x3c]
call fcn.005f2e10
lea ecx, [esp + 0x7c]
call fcn.005f2e10
mov eax, dword [ebp + 8]
pop edi
cmp eax, ebx
jne 0x5ee13a
push 0x10
call fcn.0044f661
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov dword [esp + 0x90], 1
je 0x5ee135
mov ecx, eax
call fcn.005eee00
jmp 0x5ee137
xor eax, eax
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x88]
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret 4