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

Disassembly:
sub esp, 0x7c
mov edx, dword [esp + 0x88]
push ebp
mov ebp, dword [esp + 0x88]
fld dword [ebp]
mov dword [esp + 0x20], ecx
fcomp dword [edx]
fnstsw ax
test ah, 0x44
jp 0x4e3725
fld dword [ebp + 4]
fcomp dword [edx + 4]
fnstsw ax
test ah, 0x44
jp 0x4e3725
fld dword [ebp + 8]
fcomp dword [edx + 8]
fnstsw ax
test ah, 0x44
jp 0x4e3725
xor eax, eax
pop ebp
add esp, 0x7c
ret 0x1c
mov edx, dword [0x680528]
push ebx
push esi
mov esi, dword [esp + 0x9c]
inc edx
mov dword [0x680528], edx
mov eax, dword [esi + 0x24]
test eax, eax
push edi
jne 0x4e374d
mov dword [esi + 0xb8], 0x4cbebc20
mov edi, dword [esp + 0x90]
test edi, edi
jne 0x4e376c
mov ecx, dword [ecx + 0x1a48]
call fcn.004d20d0
mov dword [esp + 0x90], eax
mov edi, eax
mov ebx, dword [esp + 0xa8]
test ebx, ebx
je 0x4e378a
cmp dword [ebx], edi
je 0x4e3788
push str.crr_:_crossed_portal_n
call fcn.0058c521
add esp, 4
mov dword [ebx], edi
mov ebx, dword [esp + 0xa4]
mov eax, dword [esp + 0x98]
push ebx
push 0x680558
push 0x680738
push eax
push ebp
push edi
mov dword [0x680558], 0
call fcn.004e2fe0
mov eax, dword [0x680558]
xor ebp, ebp
add esp, 0x18
cmp eax, ebp
mov dword [esp + 0x1c], ebp
jle 0x4e3b14
mov ecx, ebx
and ecx, 0x2000000
mov dword [esp + 0x28], ecx
jmp 0x4e37e0
test ecx, ecx
mov eax, dword [ebp + 0x680750]
mov edi, dword [ebp + 0x68074c]
mov dword [esp + 0x24], eax
je 0x4e3801
test dword [edi + 0x10], 0x20000000
jne 0x4e3af3
mov edx, dword [eax + 0xbc]
test edx, edx
je 0x4e3af3
mov dword [esp + 0x10], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x84]
push ebx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x80], ecx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
push ecx
lea eax, [ebp + 0x680738]
push eax
mov ecx, edi
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x2c], 0
call fcn.004d2bd0
mov ecx, eax
test ecx, ecx
je 0x4e3aef
fld dword [0x5f53f4]
mov edx, 1
fsub dword [esp + 0x10]
fmul dword [esp + 0x18]
fadd dword [esp + 0x10]
fld dword [ebp + 0x680760]
fsub dword [ebp + 0x680754]
fstp dword [esp + 0x30]
fld dword [ebp + 0x680764]
fsub dword [ebp + 0x680758]
fstp dword [esp + 0x34]
fld dword [ebp + 0x680768]
fsub dword [ebp + 0x68075c]
fstp dword [esp + 0x38]
fld dword [esp + 0x30]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4e394c
fld dword [esp + 0x34]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4e394c
fld dword [esp + 0x38]
fcomp dword [0x60477c]
fnstsw ax
test ah, 0x44
jp 0x4e394c
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
fld dword [esp + 0x50]
jmp 0x4e3988
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fsqrt
fdivr dword [0x5f53f4]
fld dword [esp + 0x30]
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x4c]
fmul dword [esp + 0x38]
fld dword [esp + 0x48]
fmul dword [0x5da70c]
fld dword [esp + 0x4c]
fmul dword [0x5da70c]
fxch st(2)
fmul dword [0x5da70c]
fstp dword [esp + 0x68]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x54]
mov eax, dword [esp + 0x54]
mov dword [ebp + 0x680754], eax
fadd dword [esp + 0x40]
fstp dword [esp + 0x58]
fld dword [esp + 0x68]
mov eax, dword [esp + 0x58]
fadd dword [esp + 0x44]
mov dword [ebp + 0x680758], eax
fstp dword [esp + 0x5c]
fld dword [esp + 0x9c]
mov eax, dword [esp + 0x5c]
fsubr st(1)
mov dword [ebp + 0x68075c], eax
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
and eax, 0x7fffffff
mov dword [esp + 0x14], eax
fld dword [esp + 0x14]
fcomp dword [esi + 0xb8]
fnstsw ax
test ah, 0x41
jp 0x4e3ab4
mov ebx, dword [esp + 0x3c]
lea eax, [esi + 0x28]
mov dword [eax], ebx
mov ebx, dword [esp + 0x40]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x44]
mov dword [eax + 8], ebx
mov eax, dword [esp + 0x6c]
mov ebx, dword [esi + 0x24]
mov dword [esi + 0x9c], ecx
lea ecx, [esi + 0xa0]
mov dword [ecx], eax
mov eax, dword [esp + 0x70]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x78]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x98], ecx
mov ecx, dword [esp + 0x14]
or ebx, 0xa83
mov dword [esi + 0x18], edx
mov dword [esi + 0xb0], 0
mov dword [esi + 0x94], edi
mov dword [esi + 0x24], ebx
mov dword [esi + 0xb8], ecx
test byte [edi + 0x10], 1
mov eax, ebx
je 0x4e3aa0
or eax, 0x400
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0xc0]
mov dword [esi + 0xb4], eax
jmp 0x4e3adc
and eax, 0xfffffbff
mov dword [esi + 0x24], eax
mov dword [esi + 0xb4], 0
jmp 0x4e3adc
fld dword [esp + 0x10]
fsub dword [esp + 0x9c]
fstp dword [esp + 0x10]
and dword [esp + 0x10], 0x7fffffff
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x4e3adc
xor edx, edx
test edx, edx
fstp dword [esp + 0x10]
mov ebx, dword [esp + 0xa4]
jne 0x4e3840
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x680558]
inc eax
add ebp, 0x34
cmp eax, edx
mov dword [esp + 0x1c], eax
jl 0x4e37e0
mov edi, dword [esp + 0x90]
mov eax, dword [edi + 0x19c]
test eax, eax
je 0x4e3c76
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x4e3c76
lea ecx, [ecx]
cmp dword [edi + 0x3b4], 1
je 0x4e3c68
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x98]
lea edx, [esp + 0x40]
push edx
push eax
lea ebp, [edi + 0x210]
push ecx
mov ecx, ebp
call fcn.004bfd40
test eax, eax
je 0x4e3c68
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4e3b88
fld dword [esi + 0xb8]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 5
jnp 0x4e3c68
lea edx, [esp + 0x3c]
push ebp
push edx
call fcn.00548e10
add esp, 8
test eax, eax
je 0x4e3c68
mov eax, dword [0x68054c]
cmp dword [edi + 0x44], eax
je 0x4e3c68
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 0x7c], ecx
fld dword [esp + 0x7c]
fmul dword [0x5da70c]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x80], edx
fld dword [esp + 0x80]
fmul dword [0x5da70c]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x84], ecx
fld dword [esp + 0x84]
fmul dword [0x5da70c]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x88], edx
cmp dword [edi + 0x3ac], ecx
fstp dword [esp + 0x68]
fld dword [esp + 0x3c]
fsub st(2)
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fsub st(1)
fstp dword [esp + 0x40]
fstp st(0)
fstp st(0)
fld dword [esp + 0x44]
fsub dword [esp + 0x68]
fstp dword [esp + 0x44]
je 0x4e3c9e
mov ecx, dword [0x680548]
mov edx, dword [esp + 0xa8]
push edx
inc ecx
push ebx
mov dword [0x680548], ecx
mov ecx, dword [esp + 0xa0]
push esi
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x4c]
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0x3ac]
push edx
push eax
call fcn.004e31c0
cmp eax, 1
je 0x4e3c8f
mov edi, dword [edi + 0x3a4]
test edi, edi
jne 0x4e3b30
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4e3c9e
mov eax, dword [esi + 0x24]
pop edi
pop esi
shr eax, 1
pop ebx
and eax, 1
pop ebp
add esp, 0x7c
ret 0x1c
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x7c
ret 0x1c
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x7c
ret 0x1c